AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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/LanguageCode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace TranscribeService {
17namespace Model {
18
22 public:
23 AWS_TRANSCRIBESERVICE_API UpdateVocabularyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateVocabulary"; }
30
31 AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
32
33 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
41 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
42 template <typename VocabularyNameT = Aws::String>
43 void SetVocabularyName(VocabularyNameT&& value) {
44 m_vocabularyNameHasBeenSet = true;
45 m_vocabularyName = std::forward<VocabularyNameT>(value);
46 }
47 template <typename VocabularyNameT = Aws::String>
48 UpdateVocabularyRequest& WithVocabularyName(VocabularyNameT&& value) {
49 SetVocabularyName(std::forward<VocabularyNameT>(value));
50 return *this;
51 }
53
55
66 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
67 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
68 inline void SetLanguageCode(LanguageCode value) {
69 m_languageCodeHasBeenSet = true;
70 m_languageCode = value;
71 }
73 SetLanguageCode(value);
74 return *this;
75 }
77
79
93 inline const Aws::Vector<Aws::String>& GetPhrases() const { return m_phrases; }
94 inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; }
95 template <typename PhrasesT = Aws::Vector<Aws::String>>
96 void SetPhrases(PhrasesT&& value) {
97 m_phrasesHasBeenSet = true;
98 m_phrases = std::forward<PhrasesT>(value);
99 }
100 template <typename PhrasesT = Aws::Vector<Aws::String>>
102 SetPhrases(std::forward<PhrasesT>(value));
103 return *this;
104 }
105 template <typename PhrasesT = Aws::String>
107 m_phrasesHasBeenSet = true;
108 m_phrases.emplace_back(std::forward<PhrasesT>(value));
109 return *this;
110 }
112
114
122 inline const Aws::String& GetVocabularyFileUri() const { return m_vocabularyFileUri; }
123 inline bool VocabularyFileUriHasBeenSet() const { return m_vocabularyFileUriHasBeenSet; }
124 template <typename VocabularyFileUriT = Aws::String>
125 void SetVocabularyFileUri(VocabularyFileUriT&& value) {
126 m_vocabularyFileUriHasBeenSet = true;
127 m_vocabularyFileUri = std::forward<VocabularyFileUriT>(value);
128 }
129 template <typename VocabularyFileUriT = Aws::String>
130 UpdateVocabularyRequest& WithVocabularyFileUri(VocabularyFileUriT&& value) {
131 SetVocabularyFileUri(std::forward<VocabularyFileUriT>(value));
132 return *this;
133 }
135
137
149 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
150 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
151 template <typename DataAccessRoleArnT = Aws::String>
152 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
153 m_dataAccessRoleArnHasBeenSet = true;
154 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
155 }
156 template <typename DataAccessRoleArnT = Aws::String>
157 UpdateVocabularyRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) {
158 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_vocabularyName;
164
165 LanguageCode m_languageCode{LanguageCode::NOT_SET};
166
167 Aws::Vector<Aws::String> m_phrases;
168
169 Aws::String m_vocabularyFileUri;
170
171 Aws::String m_dataAccessRoleArn;
172 bool m_vocabularyNameHasBeenSet = false;
173 bool m_languageCodeHasBeenSet = false;
174 bool m_phrasesHasBeenSet = false;
175 bool m_vocabularyFileUriHasBeenSet = false;
176 bool m_dataAccessRoleArnHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace TranscribeService
181} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateVocabularyRequest & AddPhrases(PhrasesT &&value)
AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateVocabularyRequest & WithLanguageCode(LanguageCode value)
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)
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