AWS SDK for C++

AWS SDK for C++ Version 1.11.905

Loading...
Searching...
No Matches
UpdateVocabularyRequest.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
14#include <utility>
15
16namespace Aws {
17namespace TranscribeService {
18namespace Model {
19
23 public:
24 AWS_TRANSCRIBESERVICE_API UpdateVocabularyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateVocabulary"; }
31
32 AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
33
34 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
42 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
43 template <typename VocabularyNameT = Aws::String>
44 void SetVocabularyName(VocabularyNameT&& value) {
45 m_vocabularyNameHasBeenSet = true;
46 m_vocabularyName = std::forward<VocabularyNameT>(value);
47 }
48 template <typename VocabularyNameT = Aws::String>
49 UpdateVocabularyRequest& WithVocabularyName(VocabularyNameT&& value) {
50 SetVocabularyName(std::forward<VocabularyNameT>(value));
51 return *this;
52 }
54
56
67 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
68 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
69 inline void SetLanguageCode(LanguageCode value) {
70 m_languageCodeHasBeenSet = true;
71 m_languageCode = value;
72 }
74 SetLanguageCode(value);
75 return *this;
76 }
78
80
94 inline const Aws::Vector<Aws::String>& GetPhrases() const { return m_phrases; }
95 inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; }
96 template <typename PhrasesT = Aws::Vector<Aws::String>>
97 void SetPhrases(PhrasesT&& value) {
98 m_phrasesHasBeenSet = true;
99 m_phrases = std::forward<PhrasesT>(value);
100 }
101 template <typename PhrasesT = Aws::Vector<Aws::String>>
103 SetPhrases(std::forward<PhrasesT>(value));
104 return *this;
105 }
106 template <typename PhrasesT = Aws::String>
108 m_phrasesHasBeenSet = true;
109 m_phrases.emplace_back(std::forward<PhrasesT>(value));
110 return *this;
111 }
113
115
123 inline const Aws::String& GetVocabularyFileUri() const { return m_vocabularyFileUri; }
124 inline bool VocabularyFileUriHasBeenSet() const { return m_vocabularyFileUriHasBeenSet; }
125 template <typename VocabularyFileUriT = Aws::String>
126 void SetVocabularyFileUri(VocabularyFileUriT&& value) {
127 m_vocabularyFileUriHasBeenSet = true;
128 m_vocabularyFileUri = std::forward<VocabularyFileUriT>(value);
129 }
130 template <typename VocabularyFileUriT = Aws::String>
131 UpdateVocabularyRequest& WithVocabularyFileUri(VocabularyFileUriT&& value) {
132 SetVocabularyFileUri(std::forward<VocabularyFileUriT>(value));
133 return *this;
134 }
136
138
151 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
152 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
153 template <typename DataAccessRoleArnT = Aws::String>
154 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
155 m_dataAccessRoleArnHasBeenSet = true;
156 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
157 }
158 template <typename DataAccessRoleArnT = Aws::String>
159 UpdateVocabularyRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) {
160 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
161 return *this;
162 }
164
166
171 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
172 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
173 template <typename EncryptionConfigurationT = EncryptionConfiguration>
174 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
175 m_encryptionConfigurationHasBeenSet = true;
176 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
177 }
178 template <typename EncryptionConfigurationT = EncryptionConfiguration>
179 UpdateVocabularyRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
180 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_vocabularyName;
186
187 LanguageCode m_languageCode{LanguageCode::NOT_SET};
188
189 Aws::Vector<Aws::String> m_phrases;
190
191 Aws::String m_vocabularyFileUri;
192
193 Aws::String m_dataAccessRoleArn;
194
195 EncryptionConfiguration m_encryptionConfiguration;
196 bool m_vocabularyNameHasBeenSet = false;
197 bool m_languageCodeHasBeenSet = false;
198 bool m_phrasesHasBeenSet = false;
199 bool m_vocabularyFileUriHasBeenSet = false;
200 bool m_dataAccessRoleArnHasBeenSet = false;
201 bool m_encryptionConfigurationHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace TranscribeService
206} // namespace Aws
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
UpdateVocabularyRequest & AddPhrases(PhrasesT &&value)
AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateVocabularyRequest & WithLanguageCode(LanguageCode value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
AWS_TRANSCRIBESERVICE_API UpdateVocabularyRequest()=default
const Aws::Vector< Aws::String > & GetPhrases() const
AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override
UpdateVocabularyRequest & WithVocabularyName(VocabularyNameT &&value)
UpdateVocabularyRequest & WithPhrases(PhrasesT &&value)
UpdateVocabularyRequest & WithVocabularyFileUri(VocabularyFileUriT &&value)
UpdateVocabularyRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
UpdateVocabularyRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
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