AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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/LanguageCode.h>
12#include <aws/transcribe/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace TranscribeService {
18namespace Model {
19
23 public:
24 AWS_TRANSCRIBESERVICE_API CreateVocabularyRequest() = 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 "CreateVocabulary"; }
31
32 AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
33
34 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
44 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
45 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
46 template <typename VocabularyNameT = Aws::String>
47 void SetVocabularyName(VocabularyNameT&& value) {
48 m_vocabularyNameHasBeenSet = true;
49 m_vocabularyName = std::forward<VocabularyNameT>(value);
50 }
51 template <typename VocabularyNameT = Aws::String>
52 CreateVocabularyRequest& WithVocabularyName(VocabularyNameT&& value) {
53 SetVocabularyName(std::forward<VocabularyNameT>(value));
54 return *this;
55 }
57
59
70 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
71 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
72 inline void SetLanguageCode(LanguageCode value) {
73 m_languageCodeHasBeenSet = true;
74 m_languageCode = value;
75 }
77 SetLanguageCode(value);
78 return *this;
79 }
81
83
97 inline const Aws::Vector<Aws::String>& GetPhrases() const { return m_phrases; }
98 inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; }
99 template <typename PhrasesT = Aws::Vector<Aws::String>>
100 void SetPhrases(PhrasesT&& value) {
101 m_phrasesHasBeenSet = true;
102 m_phrases = std::forward<PhrasesT>(value);
103 }
104 template <typename PhrasesT = Aws::Vector<Aws::String>>
106 SetPhrases(std::forward<PhrasesT>(value));
107 return *this;
108 }
109 template <typename PhrasesT = Aws::String>
111 m_phrasesHasBeenSet = true;
112 m_phrases.emplace_back(std::forward<PhrasesT>(value));
113 return *this;
114 }
116
118
126 inline const Aws::String& GetVocabularyFileUri() const { return m_vocabularyFileUri; }
127 inline bool VocabularyFileUriHasBeenSet() const { return m_vocabularyFileUriHasBeenSet; }
128 template <typename VocabularyFileUriT = Aws::String>
129 void SetVocabularyFileUri(VocabularyFileUriT&& value) {
130 m_vocabularyFileUriHasBeenSet = true;
131 m_vocabularyFileUri = std::forward<VocabularyFileUriT>(value);
132 }
133 template <typename VocabularyFileUriT = Aws::String>
134 CreateVocabularyRequest& WithVocabularyFileUri(VocabularyFileUriT&& value) {
135 SetVocabularyFileUri(std::forward<VocabularyFileUriT>(value));
136 return *this;
137 }
139
141
148 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Vector<Tag>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Vector<Tag>>
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsT = Tag>
162 m_tagsHasBeenSet = true;
163 m_tags.emplace_back(std::forward<TagsT>(value));
164 return *this;
165 }
167
169
181 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
182 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
183 template <typename DataAccessRoleArnT = Aws::String>
184 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
185 m_dataAccessRoleArnHasBeenSet = true;
186 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
187 }
188 template <typename DataAccessRoleArnT = Aws::String>
189 CreateVocabularyRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) {
190 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_vocabularyName;
196
197 LanguageCode m_languageCode{LanguageCode::NOT_SET};
198
199 Aws::Vector<Aws::String> m_phrases;
200
201 Aws::String m_vocabularyFileUri;
202
203 Aws::Vector<Tag> m_tags;
204
205 Aws::String m_dataAccessRoleArn;
206 bool m_vocabularyNameHasBeenSet = false;
207 bool m_languageCodeHasBeenSet = false;
208 bool m_phrasesHasBeenSet = false;
209 bool m_vocabularyFileUriHasBeenSet = false;
210 bool m_tagsHasBeenSet = false;
211 bool m_dataAccessRoleArnHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace TranscribeService
216} // namespace Aws
CreateVocabularyRequest & WithVocabularyFileUri(VocabularyFileUriT &&value)
CreateVocabularyRequest & WithVocabularyName(VocabularyNameT &&value)
CreateVocabularyRequest & AddPhrases(PhrasesT &&value)
AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override
CreateVocabularyRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
CreateVocabularyRequest & WithPhrases(PhrasesT &&value)
virtual const char * GetServiceRequestName() const override
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