AWS SDK for C++

AWS SDK for C++ Version 1.11.905

Loading...
Searching...
No Matches
CreateVocabularyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribe/TranscribeServiceRequest.h>
10#include <aws/transcribe/TranscribeService_EXPORTS.h>
11#include <aws/transcribe/model/EncryptionConfiguration.h>
12#include <aws/transcribe/model/LanguageCode.h>
13#include <aws/transcribe/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace TranscribeService {
19namespace Model {
20
24 public:
25 AWS_TRANSCRIBESERVICE_API CreateVocabularyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateVocabulary"; }
32
33 AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
45 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
46 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
47 template <typename VocabularyNameT = Aws::String>
48 void SetVocabularyName(VocabularyNameT&& value) {
49 m_vocabularyNameHasBeenSet = true;
50 m_vocabularyName = std::forward<VocabularyNameT>(value);
51 }
52 template <typename VocabularyNameT = Aws::String>
53 CreateVocabularyRequest& WithVocabularyName(VocabularyNameT&& value) {
54 SetVocabularyName(std::forward<VocabularyNameT>(value));
55 return *this;
56 }
58
60
71 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
72 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
73 inline void SetLanguageCode(LanguageCode value) {
74 m_languageCodeHasBeenSet = true;
75 m_languageCode = value;
76 }
78 SetLanguageCode(value);
79 return *this;
80 }
82
84
98 inline const Aws::Vector<Aws::String>& GetPhrases() const { return m_phrases; }
99 inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; }
100 template <typename PhrasesT = Aws::Vector<Aws::String>>
101 void SetPhrases(PhrasesT&& value) {
102 m_phrasesHasBeenSet = true;
103 m_phrases = std::forward<PhrasesT>(value);
104 }
105 template <typename PhrasesT = Aws::Vector<Aws::String>>
107 SetPhrases(std::forward<PhrasesT>(value));
108 return *this;
109 }
110 template <typename PhrasesT = Aws::String>
112 m_phrasesHasBeenSet = true;
113 m_phrases.emplace_back(std::forward<PhrasesT>(value));
114 return *this;
115 }
117
119
127 inline const Aws::String& GetVocabularyFileUri() const { return m_vocabularyFileUri; }
128 inline bool VocabularyFileUriHasBeenSet() const { return m_vocabularyFileUriHasBeenSet; }
129 template <typename VocabularyFileUriT = Aws::String>
130 void SetVocabularyFileUri(VocabularyFileUriT&& value) {
131 m_vocabularyFileUriHasBeenSet = true;
132 m_vocabularyFileUri = std::forward<VocabularyFileUriT>(value);
133 }
134 template <typename VocabularyFileUriT = Aws::String>
135 CreateVocabularyRequest& WithVocabularyFileUri(VocabularyFileUriT&& value) {
136 SetVocabularyFileUri(std::forward<VocabularyFileUriT>(value));
137 return *this;
138 }
140
142
149 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Vector<Tag>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Vector<Tag>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsT = Tag>
163 m_tagsHasBeenSet = true;
164 m_tags.emplace_back(std::forward<TagsT>(value));
165 return *this;
166 }
168
170
183 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
184 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
185 template <typename DataAccessRoleArnT = Aws::String>
186 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
187 m_dataAccessRoleArnHasBeenSet = true;
188 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
189 }
190 template <typename DataAccessRoleArnT = Aws::String>
191 CreateVocabularyRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) {
192 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
193 return *this;
194 }
196
198
203 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
204 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
205 template <typename EncryptionConfigurationT = EncryptionConfiguration>
206 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
207 m_encryptionConfigurationHasBeenSet = true;
208 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
209 }
210 template <typename EncryptionConfigurationT = EncryptionConfiguration>
211 CreateVocabularyRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
212 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_vocabularyName;
218
219 LanguageCode m_languageCode{LanguageCode::NOT_SET};
220
221 Aws::Vector<Aws::String> m_phrases;
222
223 Aws::String m_vocabularyFileUri;
224
225 Aws::Vector<Tag> m_tags;
226
227 Aws::String m_dataAccessRoleArn;
228
229 EncryptionConfiguration m_encryptionConfiguration;
230 bool m_vocabularyNameHasBeenSet = false;
231 bool m_languageCodeHasBeenSet = false;
232 bool m_phrasesHasBeenSet = false;
233 bool m_vocabularyFileUriHasBeenSet = false;
234 bool m_tagsHasBeenSet = false;
235 bool m_dataAccessRoleArnHasBeenSet = false;
236 bool m_encryptionConfigurationHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace TranscribeService
241} // namespace Aws
CreateVocabularyRequest & WithVocabularyFileUri(VocabularyFileUriT &&value)
CreateVocabularyRequest & WithVocabularyName(VocabularyNameT &&value)
CreateVocabularyRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateVocabularyRequest & AddPhrases(PhrasesT &&value)
AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override
CreateVocabularyRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateVocabularyRequest & WithPhrases(PhrasesT &&value)
virtual const char * GetServiceRequestName() const override
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_TRANSCRIBESERVICE_API CreateVocabularyRequest()=default
AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateVocabularyRequest & WithLanguageCode(LanguageCode value)
const Aws::Vector< Aws::String > & GetPhrases() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector