AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/LanguageCode.h>
12#include <aws/transcribe/model/VocabularyState.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace TranscribeService {
26namespace Model {
28 public:
29 AWS_TRANSCRIBESERVICE_API GetVocabularyResult() = default;
32
34
37 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
38 template <typename VocabularyNameT = Aws::String>
39 void SetVocabularyName(VocabularyNameT&& value) {
40 m_vocabularyNameHasBeenSet = true;
41 m_vocabularyName = std::forward<VocabularyNameT>(value);
42 }
43 template <typename VocabularyNameT = Aws::String>
44 GetVocabularyResult& WithVocabularyName(VocabularyNameT&& value) {
45 SetVocabularyName(std::forward<VocabularyNameT>(value));
46 return *this;
47 }
49
51
54 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
55 inline void SetLanguageCode(LanguageCode value) {
56 m_languageCodeHasBeenSet = true;
57 m_languageCode = value;
58 }
60 SetLanguageCode(value);
61 return *this;
62 }
64
66
71 inline VocabularyState GetVocabularyState() const { return m_vocabularyState; }
73 m_vocabularyStateHasBeenSet = true;
74 m_vocabularyState = value;
75 }
77 SetVocabularyState(value);
78 return *this;
79 }
81
83
89 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
90 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
91 void SetLastModifiedTime(LastModifiedTimeT&& value) {
92 m_lastModifiedTimeHasBeenSet = true;
93 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
94 }
95 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
96 GetVocabularyResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
97 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
98 return *this;
99 }
101
103
110 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
111 template <typename FailureReasonT = Aws::String>
112 void SetFailureReason(FailureReasonT&& value) {
113 m_failureReasonHasBeenSet = true;
114 m_failureReason = std::forward<FailureReasonT>(value);
115 }
116 template <typename FailureReasonT = Aws::String>
117 GetVocabularyResult& WithFailureReason(FailureReasonT&& value) {
118 SetFailureReason(std::forward<FailureReasonT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetDownloadUri() const { return m_downloadUri; }
129 template <typename DownloadUriT = Aws::String>
130 void SetDownloadUri(DownloadUriT&& value) {
131 m_downloadUriHasBeenSet = true;
132 m_downloadUri = std::forward<DownloadUriT>(value);
133 }
134 template <typename DownloadUriT = Aws::String>
135 GetVocabularyResult& WithDownloadUri(DownloadUriT&& value) {
136 SetDownloadUri(std::forward<DownloadUriT>(value));
137 return *this;
138 }
140
142
143 inline const Aws::String& GetRequestId() const { return m_requestId; }
144 template <typename RequestIdT = Aws::String>
145 void SetRequestId(RequestIdT&& value) {
146 m_requestIdHasBeenSet = true;
147 m_requestId = std::forward<RequestIdT>(value);
148 }
149 template <typename RequestIdT = Aws::String>
150 GetVocabularyResult& WithRequestId(RequestIdT&& value) {
151 SetRequestId(std::forward<RequestIdT>(value));
152 return *this;
153 }
155 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
156
157 private:
158 Aws::String m_vocabularyName;
159
160 LanguageCode m_languageCode{LanguageCode::NOT_SET};
161
162 VocabularyState m_vocabularyState{VocabularyState::NOT_SET};
163
164 Aws::Utils::DateTime m_lastModifiedTime{};
165
166 Aws::String m_failureReason;
167
168 Aws::String m_downloadUri;
169
170 Aws::String m_requestId;
171 Aws::Http::HttpResponseCode m_HttpResponseCode;
172 bool m_vocabularyNameHasBeenSet = false;
173 bool m_languageCodeHasBeenSet = false;
174 bool m_vocabularyStateHasBeenSet = false;
175 bool m_lastModifiedTimeHasBeenSet = false;
176 bool m_failureReasonHasBeenSet = false;
177 bool m_downloadUriHasBeenSet = false;
178 bool m_requestIdHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace TranscribeService
183} // namespace Aws
GetVocabularyResult & WithVocabularyState(VocabularyState value)
GetVocabularyResult & WithVocabularyName(VocabularyNameT &&value)
GetVocabularyResult & WithRequestId(RequestIdT &&value)
AWS_TRANSCRIBESERVICE_API GetVocabularyResult()=default
GetVocabularyResult & WithDownloadUri(DownloadUriT &&value)
AWS_TRANSCRIBESERVICE_API GetVocabularyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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