AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
GetVocabularyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/transcribe/TranscribeService_EXPORTS.h>
11#include <aws/transcribe/model/EncryptionConfiguration.h>
12#include <aws/transcribe/model/LanguageCode.h>
13#include <aws/transcribe/model/VocabularyState.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace TranscribeService {
27namespace Model {
29 public:
30 AWS_TRANSCRIBESERVICE_API GetVocabularyResult() = default;
33
35
38 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
39 template <typename VocabularyNameT = Aws::String>
40 void SetVocabularyName(VocabularyNameT&& value) {
41 m_vocabularyNameHasBeenSet = true;
42 m_vocabularyName = std::forward<VocabularyNameT>(value);
43 }
44 template <typename VocabularyNameT = Aws::String>
45 GetVocabularyResult& WithVocabularyName(VocabularyNameT&& value) {
46 SetVocabularyName(std::forward<VocabularyNameT>(value));
47 return *this;
48 }
50
52
55 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
56 inline void SetLanguageCode(LanguageCode value) {
57 m_languageCodeHasBeenSet = true;
58 m_languageCode = value;
59 }
61 SetLanguageCode(value);
62 return *this;
63 }
65
67
72 inline VocabularyState GetVocabularyState() const { return m_vocabularyState; }
74 m_vocabularyStateHasBeenSet = true;
75 m_vocabularyState = value;
76 }
78 SetVocabularyState(value);
79 return *this;
80 }
82
84
90 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
91 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
92 void SetLastModifiedTime(LastModifiedTimeT&& value) {
93 m_lastModifiedTimeHasBeenSet = true;
94 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
95 }
96 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
97 GetVocabularyResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
98 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
99 return *this;
100 }
102
104
111 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
112 template <typename FailureReasonT = Aws::String>
113 void SetFailureReason(FailureReasonT&& value) {
114 m_failureReasonHasBeenSet = true;
115 m_failureReason = std::forward<FailureReasonT>(value);
116 }
117 template <typename FailureReasonT = Aws::String>
118 GetVocabularyResult& WithFailureReason(FailureReasonT&& value) {
119 SetFailureReason(std::forward<FailureReasonT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetDownloadUri() const { return m_downloadUri; }
130 template <typename DownloadUriT = Aws::String>
131 void SetDownloadUri(DownloadUriT&& value) {
132 m_downloadUriHasBeenSet = true;
133 m_downloadUri = std::forward<DownloadUriT>(value);
134 }
135 template <typename DownloadUriT = Aws::String>
136 GetVocabularyResult& WithDownloadUri(DownloadUriT&& value) {
137 SetDownloadUri(std::forward<DownloadUriT>(value));
138 return *this;
139 }
141
143
148 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
149 template <typename DataAccessRoleArnT = Aws::String>
150 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
151 m_dataAccessRoleArnHasBeenSet = true;
152 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
153 }
154 template <typename DataAccessRoleArnT = Aws::String>
155 GetVocabularyResult& WithDataAccessRoleArn(DataAccessRoleArnT&& value) {
156 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
157 return *this;
158 }
160
162
165 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
166 template <typename EncryptionConfigurationT = EncryptionConfiguration>
167 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
168 m_encryptionConfigurationHasBeenSet = true;
169 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
170 }
171 template <typename EncryptionConfigurationT = EncryptionConfiguration>
172 GetVocabularyResult& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
173 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
174 return *this;
175 }
177
179
180 inline const Aws::String& GetRequestId() const { return m_requestId; }
181 template <typename RequestIdT = Aws::String>
182 void SetRequestId(RequestIdT&& value) {
183 m_requestIdHasBeenSet = true;
184 m_requestId = std::forward<RequestIdT>(value);
185 }
186 template <typename RequestIdT = Aws::String>
187 GetVocabularyResult& WithRequestId(RequestIdT&& value) {
188 SetRequestId(std::forward<RequestIdT>(value));
189 return *this;
190 }
192 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
193
194 private:
195 Aws::String m_vocabularyName;
196
197 LanguageCode m_languageCode{LanguageCode::NOT_SET};
198
199 VocabularyState m_vocabularyState{VocabularyState::NOT_SET};
200
201 Aws::Utils::DateTime m_lastModifiedTime{};
202
203 Aws::String m_failureReason;
204
205 Aws::String m_downloadUri;
206
207 Aws::String m_dataAccessRoleArn;
208
209 EncryptionConfiguration m_encryptionConfiguration;
210
211 Aws::String m_requestId;
212 Aws::Http::HttpResponseCode m_HttpResponseCode;
213 bool m_vocabularyNameHasBeenSet = false;
214 bool m_languageCodeHasBeenSet = false;
215 bool m_vocabularyStateHasBeenSet = false;
216 bool m_lastModifiedTimeHasBeenSet = false;
217 bool m_failureReasonHasBeenSet = false;
218 bool m_downloadUriHasBeenSet = false;
219 bool m_dataAccessRoleArnHasBeenSet = false;
220 bool m_encryptionConfigurationHasBeenSet = false;
221 bool m_requestIdHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace TranscribeService
226} // namespace Aws
GetVocabularyResult & WithVocabularyState(VocabularyState value)
GetVocabularyResult & WithVocabularyName(VocabularyNameT &&value)
GetVocabularyResult & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
GetVocabularyResult & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
GetVocabularyResult & WithRequestId(RequestIdT &&value)
AWS_TRANSCRIBESERVICE_API GetVocabularyResult()=default
GetVocabularyResult & WithDownloadUri(DownloadUriT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
AWS_TRANSCRIBESERVICE_API GetVocabularyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
GetVocabularyResult & WithLastModifiedTime(LastModifiedTimeT &&value)
GetVocabularyResult & WithFailureReason(FailureReasonT &&value)
GetVocabularyResult & WithLanguageCode(LanguageCode value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_TRANSCRIBESERVICE_API GetVocabularyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastModifiedTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue