AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateVoiceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/polly/PollyRequest.h>
11#include <aws/polly/Polly_EXPORTS.h>
12#include <aws/polly/model/CustomVoiceLanguageCode.h>
13#include <aws/polly/model/CustomerManagedEncryption.h>
14#include <aws/polly/model/VoiceCreationData.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Polly {
20namespace Model {
21
25 public:
26 AWS_POLLY_API CreateVoiceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateVoice"; }
33
34 AWS_POLLY_API Aws::String SerializePayload() const override;
35
37
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 CreateVoiceRequest& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline CustomVoiceLanguageCode GetLanguageCode() const { return m_languageCode; }
63 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
65 m_languageCodeHasBeenSet = true;
66 m_languageCode = value;
67 }
69 SetLanguageCode(value);
70 return *this;
71 }
73
75
93 inline bool GetTermsAccepted() const { return m_termsAccepted; }
94 inline bool TermsAcceptedHasBeenSet() const { return m_termsAcceptedHasBeenSet; }
95 inline void SetTermsAccepted(bool value) {
96 m_termsAcceptedHasBeenSet = true;
97 m_termsAccepted = value;
98 }
100 SetTermsAccepted(value);
101 return *this;
102 }
104
106
109 inline const VoiceCreationData& GetVoiceCreationData() const { return m_voiceCreationData; }
110 inline bool VoiceCreationDataHasBeenSet() const { return m_voiceCreationDataHasBeenSet; }
111 template <typename VoiceCreationDataT = VoiceCreationData>
112 void SetVoiceCreationData(VoiceCreationDataT&& value) {
113 m_voiceCreationDataHasBeenSet = true;
114 m_voiceCreationData = std::forward<VoiceCreationDataT>(value);
115 }
116 template <typename VoiceCreationDataT = VoiceCreationData>
117 CreateVoiceRequest& WithVoiceCreationData(VoiceCreationDataT&& value) {
118 SetVoiceCreationData(std::forward<VoiceCreationDataT>(value));
119 return *this;
120 }
122
124
129 inline const CustomerManagedEncryption& GetCustomerManagedEncryption() const { return m_customerManagedEncryption; }
130 inline bool CustomerManagedEncryptionHasBeenSet() const { return m_customerManagedEncryptionHasBeenSet; }
131 template <typename CustomerManagedEncryptionT = CustomerManagedEncryption>
132 void SetCustomerManagedEncryption(CustomerManagedEncryptionT&& value) {
133 m_customerManagedEncryptionHasBeenSet = true;
134 m_customerManagedEncryption = std::forward<CustomerManagedEncryptionT>(value);
135 }
136 template <typename CustomerManagedEncryptionT = CustomerManagedEncryption>
137 CreateVoiceRequest& WithCustomerManagedEncryption(CustomerManagedEncryptionT&& value) {
138 SetCustomerManagedEncryption(std::forward<CustomerManagedEncryptionT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 CreateVoiceRequest& WithTags(TagsT&& value) {
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 CreateVoiceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167
169
176 inline const Aws::String& GetClientToken() const { return m_clientToken; }
177 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
178 template <typename ClientTokenT = Aws::String>
179 void SetClientToken(ClientTokenT&& value) {
180 m_clientTokenHasBeenSet = true;
181 m_clientToken = std::forward<ClientTokenT>(value);
182 }
183 template <typename ClientTokenT = Aws::String>
184 CreateVoiceRequest& WithClientToken(ClientTokenT&& value) {
185 SetClientToken(std::forward<ClientTokenT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_name;
191
193
194 bool m_termsAccepted{false};
195
196 VoiceCreationData m_voiceCreationData;
197
198 CustomerManagedEncryption m_customerManagedEncryption;
199
201
203 bool m_nameHasBeenSet = false;
204 bool m_languageCodeHasBeenSet = false;
205 bool m_termsAcceptedHasBeenSet = false;
206 bool m_voiceCreationDataHasBeenSet = false;
207 bool m_customerManagedEncryptionHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209 bool m_clientTokenHasBeenSet = true;
210};
211
212} // namespace Model
213} // namespace Polly
214} // namespace Aws
CreateVoiceRequest & WithLanguageCode(CustomVoiceLanguageCode value)
void SetLanguageCode(CustomVoiceLanguageCode value)
AWS_POLLY_API CreateVoiceRequest()=default
void SetClientToken(ClientTokenT &&value)
CreateVoiceRequest & WithVoiceCreationData(VoiceCreationDataT &&value)
const Aws::String & GetClientToken() const
const VoiceCreationData & GetVoiceCreationData() const
CustomVoiceLanguageCode GetLanguageCode() const
CreateVoiceRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
void SetCustomerManagedEncryption(CustomerManagedEncryptionT &&value)
CreateVoiceRequest & WithName(NameT &&value)
CreateVoiceRequest & WithTermsAccepted(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateVoiceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_POLLY_API Aws::String SerializePayload() const override
void SetVoiceCreationData(VoiceCreationDataT &&value)
CreateVoiceRequest & WithClientToken(ClientTokenT &&value)
const CustomerManagedEncryption & GetCustomerManagedEncryption() const
const Aws::String & GetName() const
CreateVoiceRequest & WithCustomerManagedEncryption(CustomerManagedEncryptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String