AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
VoiceCreationData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/polly/Polly_EXPORTS.h>
9#include <aws/polly/model/Recording.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Polly {
21namespace Model {
22
30 public:
31 AWS_POLLY_API VoiceCreationData() = default;
34 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Recording>& GetRecordings() const { return m_recordings; }
42 inline bool RecordingsHasBeenSet() const { return m_recordingsHasBeenSet; }
43 template <typename RecordingsT = Aws::Vector<Recording>>
44 void SetRecordings(RecordingsT&& value) {
45 m_recordingsHasBeenSet = true;
46 m_recordings = std::forward<RecordingsT>(value);
47 }
48 template <typename RecordingsT = Aws::Vector<Recording>>
49 VoiceCreationData& WithRecordings(RecordingsT&& value) {
50 SetRecordings(std::forward<RecordingsT>(value));
51 return *this;
52 }
53 template <typename RecordingsT = Recording>
54 VoiceCreationData& AddRecordings(RecordingsT&& value) {
55 m_recordingsHasBeenSet = true;
56 m_recordings.emplace_back(std::forward<RecordingsT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<Recording> m_recordings;
62 bool m_recordingsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace Polly
67} // namespace Aws
VoiceCreationData & AddRecordings(RecordingsT &&value)
AWS_POLLY_API VoiceCreationData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Recording > & GetRecordings() const
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRecordings(RecordingsT &&value)
AWS_POLLY_API VoiceCreationData()=default
VoiceCreationData & WithRecordings(RecordingsT &&value)
AWS_POLLY_API VoiceCreationData(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue