AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetAdapterVersionResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/textract/Textract_EXPORTS.h>
13#include <aws/textract/model/AdapterVersionDatasetConfig.h>
14#include <aws/textract/model/AdapterVersionEvaluationMetric.h>
15#include <aws/textract/model/AdapterVersionStatus.h>
16#include <aws/textract/model/FeatureType.h>
17#include <aws/textract/model/OutputConfig.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace Textract {
31namespace Model {
33 public:
34 AWS_TEXTRACT_API GetAdapterVersionResult() = default;
37
39
42 inline const Aws::String& GetAdapterId() const { return m_adapterId; }
43 template <typename AdapterIdT = Aws::String>
44 void SetAdapterId(AdapterIdT&& value) {
45 m_adapterIdHasBeenSet = true;
46 m_adapterId = std::forward<AdapterIdT>(value);
47 }
48 template <typename AdapterIdT = Aws::String>
50 SetAdapterId(std::forward<AdapterIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAdapterVersion() const { return m_adapterVersion; }
60 template <typename AdapterVersionT = Aws::String>
61 void SetAdapterVersion(AdapterVersionT&& value) {
62 m_adapterVersionHasBeenSet = true;
63 m_adapterVersion = std::forward<AdapterVersionT>(value);
64 }
65 template <typename AdapterVersionT = Aws::String>
66 GetAdapterVersionResult& WithAdapterVersion(AdapterVersionT&& value) {
67 SetAdapterVersion(std::forward<AdapterVersionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
77 template <typename CreationTimeT = Aws::Utils::DateTime>
78 void SetCreationTime(CreationTimeT&& value) {
79 m_creationTimeHasBeenSet = true;
80 m_creationTime = std::forward<CreationTimeT>(value);
81 }
82 template <typename CreationTimeT = Aws::Utils::DateTime>
83 GetAdapterVersionResult& WithCreationTime(CreationTimeT&& value) {
84 SetCreationTime(std::forward<CreationTimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
94 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
95 void SetFeatureTypes(FeatureTypesT&& value) {
96 m_featureTypesHasBeenSet = true;
97 m_featureTypes = std::forward<FeatureTypesT>(value);
98 }
99 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
101 SetFeatureTypes(std::forward<FeatureTypesT>(value));
102 return *this;
103 }
105 m_featureTypesHasBeenSet = true;
106 m_featureTypes.push_back(value);
107 return *this;
108 }
110
112
115 inline AdapterVersionStatus GetStatus() const { return m_status; }
116 inline void SetStatus(AdapterVersionStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
131 template <typename StatusMessageT = Aws::String>
132 void SetStatusMessage(StatusMessageT&& value) {
133 m_statusMessageHasBeenSet = true;
134 m_statusMessage = std::forward<StatusMessageT>(value);
135 }
136 template <typename StatusMessageT = Aws::String>
138 SetStatusMessage(std::forward<StatusMessageT>(value));
139 return *this;
140 }
142
144
148 inline const AdapterVersionDatasetConfig& GetDatasetConfig() const { return m_datasetConfig; }
149 template <typename DatasetConfigT = AdapterVersionDatasetConfig>
150 void SetDatasetConfig(DatasetConfigT&& value) {
151 m_datasetConfigHasBeenSet = true;
152 m_datasetConfig = std::forward<DatasetConfigT>(value);
153 }
154 template <typename DatasetConfigT = AdapterVersionDatasetConfig>
156 SetDatasetConfig(std::forward<DatasetConfigT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
167 template <typename KMSKeyIdT = Aws::String>
168 void SetKMSKeyId(KMSKeyIdT&& value) {
169 m_kMSKeyIdHasBeenSet = true;
170 m_kMSKeyId = std::forward<KMSKeyIdT>(value);
171 }
172 template <typename KMSKeyIdT = Aws::String>
174 SetKMSKeyId(std::forward<KMSKeyIdT>(value));
175 return *this;
176 }
178
180
181 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
182 template <typename OutputConfigT = OutputConfig>
183 void SetOutputConfig(OutputConfigT&& value) {
184 m_outputConfigHasBeenSet = true;
185 m_outputConfig = std::forward<OutputConfigT>(value);
186 }
187 template <typename OutputConfigT = OutputConfig>
189 SetOutputConfig(std::forward<OutputConfigT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::Vector<AdapterVersionEvaluationMetric>& GetEvaluationMetrics() const { return m_evaluationMetrics; }
200 template <typename EvaluationMetricsT = Aws::Vector<AdapterVersionEvaluationMetric>>
201 void SetEvaluationMetrics(EvaluationMetricsT&& value) {
202 m_evaluationMetricsHasBeenSet = true;
203 m_evaluationMetrics = std::forward<EvaluationMetricsT>(value);
204 }
205 template <typename EvaluationMetricsT = Aws::Vector<AdapterVersionEvaluationMetric>>
206 GetAdapterVersionResult& WithEvaluationMetrics(EvaluationMetricsT&& value) {
207 SetEvaluationMetrics(std::forward<EvaluationMetricsT>(value));
208 return *this;
209 }
210 template <typename EvaluationMetricsT = AdapterVersionEvaluationMetric>
211 GetAdapterVersionResult& AddEvaluationMetrics(EvaluationMetricsT&& value) {
212 m_evaluationMetricsHasBeenSet = true;
213 m_evaluationMetrics.emplace_back(std::forward<EvaluationMetricsT>(value));
214 return *this;
215 }
217
219
223 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
224 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 void SetTags(TagsT&& value) {
226 m_tagsHasBeenSet = true;
227 m_tags = std::forward<TagsT>(value);
228 }
229 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
231 SetTags(std::forward<TagsT>(value));
232 return *this;
233 }
234 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
235 GetAdapterVersionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
236 m_tagsHasBeenSet = true;
237 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
238 return *this;
239 }
241
243
244 inline const Aws::String& GetRequestId() const { return m_requestId; }
245 template <typename RequestIdT = Aws::String>
246 void SetRequestId(RequestIdT&& value) {
247 m_requestIdHasBeenSet = true;
248 m_requestId = std::forward<RequestIdT>(value);
249 }
250 template <typename RequestIdT = Aws::String>
252 SetRequestId(std::forward<RequestIdT>(value));
253 return *this;
254 }
256 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
257
258 private:
259 Aws::String m_adapterId;
260
261 Aws::String m_adapterVersion;
262
263 Aws::Utils::DateTime m_creationTime{};
264
265 Aws::Vector<FeatureType> m_featureTypes;
266
268
269 Aws::String m_statusMessage;
270
271 AdapterVersionDatasetConfig m_datasetConfig;
272
273 Aws::String m_kMSKeyId;
274
275 OutputConfig m_outputConfig;
276
278
280
281 Aws::String m_requestId;
282 Aws::Http::HttpResponseCode m_HttpResponseCode;
283 bool m_adapterIdHasBeenSet = false;
284 bool m_adapterVersionHasBeenSet = false;
285 bool m_creationTimeHasBeenSet = false;
286 bool m_featureTypesHasBeenSet = false;
287 bool m_statusHasBeenSet = false;
288 bool m_statusMessageHasBeenSet = false;
289 bool m_datasetConfigHasBeenSet = false;
290 bool m_kMSKeyIdHasBeenSet = false;
291 bool m_outputConfigHasBeenSet = false;
292 bool m_evaluationMetricsHasBeenSet = false;
293 bool m_tagsHasBeenSet = false;
294 bool m_requestIdHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace Textract
299} // namespace Aws
const AdapterVersionDatasetConfig & GetDatasetConfig() const
GetAdapterVersionResult & WithStatus(AdapterVersionStatus value)
const Aws::Vector< AdapterVersionEvaluationMetric > & GetEvaluationMetrics() const
GetAdapterVersionResult & WithEvaluationMetrics(EvaluationMetricsT &&value)
GetAdapterVersionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetAdapterVersionResult & WithTags(TagsT &&value)
GetAdapterVersionResult & WithAdapterId(AdapterIdT &&value)
GetAdapterVersionResult & WithOutputConfig(OutputConfigT &&value)
GetAdapterVersionResult & WithFeatureTypes(FeatureTypesT &&value)
GetAdapterVersionResult & WithRequestId(RequestIdT &&value)
GetAdapterVersionResult & WithDatasetConfig(DatasetConfigT &&value)
GetAdapterVersionResult & WithCreationTime(CreationTimeT &&value)
void SetEvaluationMetrics(EvaluationMetricsT &&value)
GetAdapterVersionResult & AddEvaluationMetrics(EvaluationMetricsT &&value)
AWS_TEXTRACT_API GetAdapterVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAdapterVersionResult & WithStatusMessage(StatusMessageT &&value)
GetAdapterVersionResult & WithKMSKeyId(KMSKeyIdT &&value)
AWS_TEXTRACT_API GetAdapterVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_TEXTRACT_API GetAdapterVersionResult()=default
GetAdapterVersionResult & WithAdapterVersion(AdapterVersionT &&value)
GetAdapterVersionResult & AddFeatureTypes(FeatureType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Vector< FeatureType > & GetFeatureTypes() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue