AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateVocabularyRequest.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 <utility>
13
14namespace Aws
15{
16namespace TranscribeService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_TRANSCRIBESERVICE_API UpdateVocabularyRequest();
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_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; }
45 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
46 inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; }
47 inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); }
48 inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); }
49 inline UpdateVocabularyRequest& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;}
50 inline UpdateVocabularyRequest& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;}
51 inline UpdateVocabularyRequest& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;}
53
55
66 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
67 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
68 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
69 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
70 inline UpdateVocabularyRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
71 inline UpdateVocabularyRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
73
75
89 inline const Aws::Vector<Aws::String>& GetPhrases() const{ return m_phrases; }
90 inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; }
91 inline void SetPhrases(const Aws::Vector<Aws::String>& value) { m_phrasesHasBeenSet = true; m_phrases = value; }
92 inline void SetPhrases(Aws::Vector<Aws::String>&& value) { m_phrasesHasBeenSet = true; m_phrases = std::move(value); }
93 inline UpdateVocabularyRequest& WithPhrases(const Aws::Vector<Aws::String>& value) { SetPhrases(value); return *this;}
94 inline UpdateVocabularyRequest& WithPhrases(Aws::Vector<Aws::String>&& value) { SetPhrases(std::move(value)); return *this;}
95 inline UpdateVocabularyRequest& AddPhrases(const Aws::String& value) { m_phrasesHasBeenSet = true; m_phrases.push_back(value); return *this; }
96 inline UpdateVocabularyRequest& AddPhrases(Aws::String&& value) { m_phrasesHasBeenSet = true; m_phrases.push_back(std::move(value)); return *this; }
97 inline UpdateVocabularyRequest& AddPhrases(const char* value) { m_phrasesHasBeenSet = true; m_phrases.push_back(value); return *this; }
99
101
109 inline const Aws::String& GetVocabularyFileUri() const{ return m_vocabularyFileUri; }
110 inline bool VocabularyFileUriHasBeenSet() const { return m_vocabularyFileUriHasBeenSet; }
111 inline void SetVocabularyFileUri(const Aws::String& value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri = value; }
112 inline void SetVocabularyFileUri(Aws::String&& value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri = std::move(value); }
113 inline void SetVocabularyFileUri(const char* value) { m_vocabularyFileUriHasBeenSet = true; m_vocabularyFileUri.assign(value); }
115 inline UpdateVocabularyRequest& WithVocabularyFileUri(Aws::String&& value) { SetVocabularyFileUri(std::move(value)); return *this;}
116 inline UpdateVocabularyRequest& WithVocabularyFileUri(const char* value) { SetVocabularyFileUri(value); return *this;}
118
120
132 inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
133 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
134 inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
135 inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
136 inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
138 inline UpdateVocabularyRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
139 inline UpdateVocabularyRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
141 private:
142
143 Aws::String m_vocabularyName;
144 bool m_vocabularyNameHasBeenSet = false;
145
146 LanguageCode m_languageCode;
147 bool m_languageCodeHasBeenSet = false;
148
149 Aws::Vector<Aws::String> m_phrases;
150 bool m_phrasesHasBeenSet = false;
151
152 Aws::String m_vocabularyFileUri;
153 bool m_vocabularyFileUriHasBeenSet = false;
154
155 Aws::String m_dataAccessRoleArn;
156 bool m_dataAccessRoleArnHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace TranscribeService
161} // namespace Aws
UpdateVocabularyRequest & WithVocabularyName(Aws::String &&value)
UpdateVocabularyRequest & WithDataAccessRoleArn(const char *value)
UpdateVocabularyRequest & AddPhrases(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateVocabularyRequest & WithVocabularyFileUri(const Aws::String &value)
UpdateVocabularyRequest & WithDataAccessRoleArn(Aws::String &&value)
void SetPhrases(const Aws::Vector< Aws::String > &value)
UpdateVocabularyRequest & WithPhrases(const Aws::Vector< Aws::String > &value)
UpdateVocabularyRequest & AddPhrases(const char *value)
const Aws::Vector< Aws::String > & GetPhrases() const
UpdateVocabularyRequest & WithVocabularyFileUri(const char *value)
AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override
UpdateVocabularyRequest & WithLanguageCode(LanguageCode &&value)
UpdateVocabularyRequest & WithDataAccessRoleArn(const Aws::String &value)
UpdateVocabularyRequest & AddPhrases(Aws::String &&value)
UpdateVocabularyRequest & WithVocabularyName(const Aws::String &value)
UpdateVocabularyRequest & WithPhrases(Aws::Vector< Aws::String > &&value)
UpdateVocabularyRequest & WithVocabularyFileUri(Aws::String &&value)
UpdateVocabularyRequest & WithLanguageCode(const LanguageCode &value)
UpdateVocabularyRequest & WithVocabularyName(const char *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