AWS SDK for C++  1.9.66
AWS SDK for C++
UpdateVocabularyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace TranscribeService
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "UpdateVocabulary"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; }
45 
51  inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
52 
58  inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; }
59 
65  inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); }
66 
72  inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); }
73 
79  inline UpdateVocabularyRequest& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;}
80 
86  inline UpdateVocabularyRequest& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;}
87 
93  inline UpdateVocabularyRequest& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;}
94 
95 
100  inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
101 
106  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
107 
112  inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
113 
118  inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
119 
124  inline UpdateVocabularyRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
125 
130  inline UpdateVocabularyRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
131 
132 
136  inline const Aws::Vector<Aws::String>& GetPhrases() const{ return m_phrases; }
137 
141  inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; }
142 
146  inline void SetPhrases(const Aws::Vector<Aws::String>& value) { m_phrasesHasBeenSet = true; m_phrases = value; }
147 
151  inline void SetPhrases(Aws::Vector<Aws::String>&& value) { m_phrasesHasBeenSet = true; m_phrases = std::move(value); }
152 
156  inline UpdateVocabularyRequest& WithPhrases(const Aws::Vector<Aws::String>& value) { SetPhrases(value); return *this;}
157 
161  inline UpdateVocabularyRequest& WithPhrases(Aws::Vector<Aws::String>&& value) { SetPhrases(std::move(value)); return *this;}
162 
166  inline UpdateVocabularyRequest& AddPhrases(const Aws::String& value) { m_phrasesHasBeenSet = true; m_phrases.push_back(value); return *this; }
167 
171  inline UpdateVocabularyRequest& AddPhrases(Aws::String&& value) { m_phrasesHasBeenSet = true; m_phrases.push_back(std::move(value)); return *this; }
172 
176  inline UpdateVocabularyRequest& AddPhrases(const char* value) { m_phrasesHasBeenSet = true; m_phrases.push_back(value); return *this; }
177 
178 
190  inline const Aws::String& GetVocabularyFileUri() const{ return m_vocabularyFileUri; }
191 
203  inline bool VocabularyFileUriHasBeenSet() const { return m_vocabularyFileUriHasBeenSet; }
204 
216  inline void SetVocabularyFileUri(const Aws::String& value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri = value; }
217 
229  inline void SetVocabularyFileUri(Aws::String&& value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri = std::move(value); }
230 
242  inline void SetVocabularyFileUri(const char* value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri.assign(value); }
243 
255  inline UpdateVocabularyRequest& WithVocabularyFileUri(const Aws::String& value) { SetVocabularyFileUri(value); return *this;}
256 
268  inline UpdateVocabularyRequest& WithVocabularyFileUri(Aws::String&& value) { SetVocabularyFileUri(std::move(value)); return *this;}
269 
281  inline UpdateVocabularyRequest& WithVocabularyFileUri(const char* value) { SetVocabularyFileUri(value); return *this;}
282 
283  private:
284 
285  Aws::String m_vocabularyName;
286  bool m_vocabularyNameHasBeenSet;
287 
288  LanguageCode m_languageCode;
289  bool m_languageCodeHasBeenSet;
290 
291  Aws::Vector<Aws::String> m_phrases;
292  bool m_phrasesHasBeenSet;
293 
294  Aws::String m_vocabularyFileUri;
295  bool m_vocabularyFileUriHasBeenSet;
296  };
297 
298 } // namespace Model
299 } // namespace TranscribeService
300 } // namespace Aws
TranscribeService_EXPORTS.h
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithVocabularyName
UpdateVocabularyRequest & WithVocabularyName(const char *value)
Definition: UpdateVocabularyRequest.h:93
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithPhrases
UpdateVocabularyRequest & WithPhrases(Aws::Vector< Aws::String > &&value)
Definition: UpdateVocabularyRequest.h:161
Aws::TranscribeService::Model::UpdateVocabularyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateVocabularyRequest.h:32
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetVocabularyFileUri
void SetVocabularyFileUri(Aws::String &&value)
Definition: UpdateVocabularyRequest.h:229
Aws::TranscribeService::Model::UpdateVocabularyRequest::VocabularyNameHasBeenSet
bool VocabularyNameHasBeenSet() const
Definition: UpdateVocabularyRequest.h:51
Aws::TranscribeService::Model::UpdateVocabularyRequest::GetVocabularyFileUri
const Aws::String & GetVocabularyFileUri() const
Definition: UpdateVocabularyRequest.h:190
Aws::TranscribeService::Model::UpdateVocabularyRequest
Definition: UpdateVocabularyRequest.h:24
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetVocabularyName
void SetVocabularyName(Aws::String &&value)
Definition: UpdateVocabularyRequest.h:65
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetPhrases
void SetPhrases(Aws::Vector< Aws::String > &&value)
Definition: UpdateVocabularyRequest.h:151
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithVocabularyFileUri
UpdateVocabularyRequest & WithVocabularyFileUri(Aws::String &&value)
Definition: UpdateVocabularyRequest.h:268
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetLanguageCode
void SetLanguageCode(LanguageCode &&value)
Definition: UpdateVocabularyRequest.h:118
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithVocabularyFileUri
UpdateVocabularyRequest & WithVocabularyFileUri(const Aws::String &value)
Definition: UpdateVocabularyRequest.h:255
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
TranscribeServiceRequest.h
Aws::TranscribeService::Model::UpdateVocabularyRequest::LanguageCodeHasBeenSet
bool LanguageCodeHasBeenSet() const
Definition: UpdateVocabularyRequest.h:106
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithLanguageCode
UpdateVocabularyRequest & WithLanguageCode(const LanguageCode &value)
Definition: UpdateVocabularyRequest.h:124
AWSVector.h
Aws::TranscribeService::Model::UpdateVocabularyRequest::AddPhrases
UpdateVocabularyRequest & AddPhrases(const char *value)
Definition: UpdateVocabularyRequest.h:176
Aws::TranscribeService::Model::UpdateVocabularyRequest::AddPhrases
UpdateVocabularyRequest & AddPhrases(const Aws::String &value)
Definition: UpdateVocabularyRequest.h:166
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetLanguageCode
void SetLanguageCode(const LanguageCode &value)
Definition: UpdateVocabularyRequest.h:112
Aws::TranscribeService::Model::UpdateVocabularyRequest::GetPhrases
const Aws::Vector< Aws::String > & GetPhrases() const
Definition: UpdateVocabularyRequest.h:136
Aws::TranscribeService::Model::UpdateVocabularyRequest::VocabularyFileUriHasBeenSet
bool VocabularyFileUriHasBeenSet() const
Definition: UpdateVocabularyRequest.h:203
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithVocabularyName
UpdateVocabularyRequest & WithVocabularyName(Aws::String &&value)
Definition: UpdateVocabularyRequest.h:86
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetVocabularyFileUri
void SetVocabularyFileUri(const Aws::String &value)
Definition: UpdateVocabularyRequest.h:216
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithLanguageCode
UpdateVocabularyRequest & WithLanguageCode(LanguageCode &&value)
Definition: UpdateVocabularyRequest.h:130
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithPhrases
UpdateVocabularyRequest & WithPhrases(const Aws::Vector< Aws::String > &value)
Definition: UpdateVocabularyRequest.h:156
AWSString.h
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetVocabularyFileUri
void SetVocabularyFileUri(const char *value)
Definition: UpdateVocabularyRequest.h:242
Aws::TranscribeService::Model::UpdateVocabularyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::TranscribeService::Model::UpdateVocabularyRequest::GetLanguageCode
const LanguageCode & GetLanguageCode() const
Definition: UpdateVocabularyRequest.h:100
Aws::TranscribeService::Model::UpdateVocabularyRequest::PhrasesHasBeenSet
bool PhrasesHasBeenSet() const
Definition: UpdateVocabularyRequest.h:141
Aws
Definition: AccessManagementClient.h:15
LanguageCode.h
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetVocabularyName
void SetVocabularyName(const char *value)
Definition: UpdateVocabularyRequest.h:72
Aws::TranscribeService::Model::UpdateVocabularyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::TranscribeService::Model::UpdateVocabularyRequest::AddPhrases
UpdateVocabularyRequest & AddPhrases(Aws::String &&value)
Definition: UpdateVocabularyRequest.h:171
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetVocabularyName
void SetVocabularyName(const Aws::String &value)
Definition: UpdateVocabularyRequest.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithVocabularyName
UpdateVocabularyRequest & WithVocabularyName(const Aws::String &value)
Definition: UpdateVocabularyRequest.h:79
Aws::TranscribeService::Model::UpdateVocabularyRequest::SetPhrases
void SetPhrases(const Aws::Vector< Aws::String > &value)
Definition: UpdateVocabularyRequest.h:146
Aws::TranscribeService::Model::UpdateVocabularyRequest::UpdateVocabularyRequest
UpdateVocabularyRequest()
Aws::TranscribeService::Model::LanguageCode
LanguageCode
Definition: LanguageCode.h:17
Aws::TranscribeService::Model::UpdateVocabularyRequest::WithVocabularyFileUri
UpdateVocabularyRequest & WithVocabularyFileUri(const char *value)
Definition: UpdateVocabularyRequest.h:281
Aws::TranscribeService::TranscribeServiceRequest
Definition: TranscribeServiceRequest.h:17
AWS_TRANSCRIBESERVICE_API
#define AWS_TRANSCRIBESERVICE_API
Definition: TranscribeService_EXPORTS.h:28
Aws::TranscribeService::Model::UpdateVocabularyRequest::GetVocabularyName
const Aws::String & GetVocabularyName() const
Definition: UpdateVocabularyRequest.h:44