AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVocabularyRequest.h
1
6#pragma once
7#include <aws/transcribe/TranscribeService_EXPORTS.h>
8#include <aws/transcribe/TranscribeServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/transcribe/model/LanguageCode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/transcribe/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace TranscribeService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_TRANSCRIBESERVICE_API CreateVocabularyRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateVocabulary"; }
34
35 AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
48 inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; }
49 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
50 inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; }
51 inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); }
52 inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); }
53 inline CreateVocabularyRequest& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;}
54 inline CreateVocabularyRequest& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;}
55 inline CreateVocabularyRequest& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;}
57
59
70 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
71 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
72 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
73 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
74 inline CreateVocabularyRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
75 inline CreateVocabularyRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
77
79
93 inline const Aws::Vector<Aws::String>& GetPhrases() const{ return m_phrases; }
94 inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; }
95 inline void SetPhrases(const Aws::Vector<Aws::String>& value) { m_phrasesHasBeenSet = true; m_phrases = value; }
96 inline void SetPhrases(Aws::Vector<Aws::String>&& value) { m_phrasesHasBeenSet = true; m_phrases = std::move(value); }
97 inline CreateVocabularyRequest& WithPhrases(const Aws::Vector<Aws::String>& value) { SetPhrases(value); return *this;}
98 inline CreateVocabularyRequest& WithPhrases(Aws::Vector<Aws::String>&& value) { SetPhrases(std::move(value)); return *this;}
99 inline CreateVocabularyRequest& AddPhrases(const Aws::String& value) { m_phrasesHasBeenSet = true; m_phrases.push_back(value); return *this; }
100 inline CreateVocabularyRequest& AddPhrases(Aws::String&& value) { m_phrasesHasBeenSet = true; m_phrases.push_back(std::move(value)); return *this; }
101 inline CreateVocabularyRequest& AddPhrases(const char* value) { m_phrasesHasBeenSet = true; m_phrases.push_back(value); return *this; }
103
105
113 inline const Aws::String& GetVocabularyFileUri() const{ return m_vocabularyFileUri; }
114 inline bool VocabularyFileUriHasBeenSet() const { return m_vocabularyFileUriHasBeenSet; }
115 inline void SetVocabularyFileUri(const Aws::String& value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri = value; }
116 inline void SetVocabularyFileUri(Aws::String&& value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri = std::move(value); }
117 inline void SetVocabularyFileUri(const char* value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri.assign(value); }
119 inline CreateVocabularyRequest& WithVocabularyFileUri(Aws::String&& value) { SetVocabularyFileUri(std::move(value)); return *this;}
120 inline CreateVocabularyRequest& WithVocabularyFileUri(const char* value) { SetVocabularyFileUri(value); return *this;}
122
124
131 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
135 inline CreateVocabularyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
136 inline CreateVocabularyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
137 inline CreateVocabularyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
138 inline CreateVocabularyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
140
142
154 inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
155 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
156 inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
157 inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
158 inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
160 inline CreateVocabularyRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
161 inline CreateVocabularyRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
163 private:
164
165 Aws::String m_vocabularyName;
166 bool m_vocabularyNameHasBeenSet = false;
167
168 LanguageCode m_languageCode;
169 bool m_languageCodeHasBeenSet = false;
170
171 Aws::Vector<Aws::String> m_phrases;
172 bool m_phrasesHasBeenSet = false;
173
174 Aws::String m_vocabularyFileUri;
175 bool m_vocabularyFileUriHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179
180 Aws::String m_dataAccessRoleArn;
181 bool m_dataAccessRoleArnHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace TranscribeService
186} // namespace Aws
CreateVocabularyRequest & WithPhrases(Aws::Vector< Aws::String > &&value)
CreateVocabularyRequest & WithVocabularyName(const char *value)
CreateVocabularyRequest & WithDataAccessRoleArn(Aws::String &&value)
CreateVocabularyRequest & AddPhrases(Aws::String &&value)
CreateVocabularyRequest & WithVocabularyName(Aws::String &&value)
CreateVocabularyRequest & WithVocabularyFileUri(const Aws::String &value)
AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override
CreateVocabularyRequest & WithVocabularyFileUri(const char *value)
CreateVocabularyRequest & WithTags(const Aws::Vector< Tag > &value)
CreateVocabularyRequest & WithPhrases(const Aws::Vector< Aws::String > &value)
CreateVocabularyRequest & WithLanguageCode(LanguageCode &&value)
CreateVocabularyRequest & AddPhrases(const char *value)
virtual const char * GetServiceRequestName() const override
CreateVocabularyRequest & WithLanguageCode(const LanguageCode &value)
CreateVocabularyRequest & WithVocabularyFileUri(Aws::String &&value)
AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateVocabularyRequest & WithDataAccessRoleArn(const char *value)
void SetPhrases(const Aws::Vector< Aws::String > &value)
CreateVocabularyRequest & AddTags(const Tag &value)
const Aws::Vector< Aws::String > & GetPhrases() const
CreateVocabularyRequest & WithDataAccessRoleArn(const Aws::String &value)
CreateVocabularyRequest & AddPhrases(const Aws::String &value)
CreateVocabularyRequest & WithVocabularyName(const Aws::String &value)
CreateVocabularyRequest & WithTags(Aws::Vector< Tag > &&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