AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
CreateVocabularyResult.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 CreateVocabularyResult() = 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 CreateVocabularyResult& 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 CreateVocabularyResult& 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 CreateVocabularyResult& WithFailureReason(FailureReasonT&& value) {
118 SetFailureReason(std::forward<FailureReasonT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template <typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) {
128 m_requestIdHasBeenSet = true;
129 m_requestId = std::forward<RequestIdT>(value);
130 }
131 template <typename RequestIdT = Aws::String>
133 SetRequestId(std::forward<RequestIdT>(value));
134 return *this;
135 }
137 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
138
139 private:
140 Aws::String m_vocabularyName;
141
142 LanguageCode m_languageCode{LanguageCode::NOT_SET};
143
144 VocabularyState m_vocabularyState{VocabularyState::NOT_SET};
145
146 Aws::Utils::DateTime m_lastModifiedTime{};
147
148 Aws::String m_failureReason;
149
150 Aws::String m_requestId;
151 Aws::Http::HttpResponseCode m_HttpResponseCode;
152 bool m_vocabularyNameHasBeenSet = false;
153 bool m_languageCodeHasBeenSet = false;
154 bool m_vocabularyStateHasBeenSet = false;
155 bool m_lastModifiedTimeHasBeenSet = false;
156 bool m_failureReasonHasBeenSet = false;
157 bool m_requestIdHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace TranscribeService
162} // namespace Aws
CreateVocabularyResult & WithVocabularyState(VocabularyState value)
CreateVocabularyResult & WithLanguageCode(LanguageCode value)
CreateVocabularyResult & WithRequestId(RequestIdT &&value)
CreateVocabularyResult & WithFailureReason(FailureReasonT &&value)
CreateVocabularyResult & WithVocabularyName(VocabularyNameT &&value)
AWS_TRANSCRIBESERVICE_API CreateVocabularyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateVocabularyResult & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_TRANSCRIBESERVICE_API CreateVocabularyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_TRANSCRIBESERVICE_API CreateVocabularyResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue