AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetAdapterVersionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/textract/Textract_EXPORTS.h>
12#include <aws/textract/model/AdapterVersionDatasetConfig.h>
13#include <aws/textract/model/AdapterVersionEvaluationMetric.h>
14#include <aws/textract/model/AdapterVersionStatus.h>
15#include <aws/textract/model/FeatureType.h>
16#include <aws/textract/model/OutputConfig.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Textract {
30namespace Model {
32 public:
33 AWS_TEXTRACT_API GetAdapterVersionResult() = default;
36
38
41 inline const Aws::String& GetAdapterId() const { return m_adapterId; }
42 template <typename AdapterIdT = Aws::String>
43 void SetAdapterId(AdapterIdT&& value) {
44 m_adapterIdHasBeenSet = true;
45 m_adapterId = std::forward<AdapterIdT>(value);
46 }
47 template <typename AdapterIdT = Aws::String>
49 SetAdapterId(std::forward<AdapterIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAdapterVersion() const { return m_adapterVersion; }
59 template <typename AdapterVersionT = Aws::String>
60 void SetAdapterVersion(AdapterVersionT&& value) {
61 m_adapterVersionHasBeenSet = true;
62 m_adapterVersion = std::forward<AdapterVersionT>(value);
63 }
64 template <typename AdapterVersionT = Aws::String>
65 GetAdapterVersionResult& WithAdapterVersion(AdapterVersionT&& value) {
66 SetAdapterVersion(std::forward<AdapterVersionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
76 template <typename CreationTimeT = Aws::Utils::DateTime>
77 void SetCreationTime(CreationTimeT&& value) {
78 m_creationTimeHasBeenSet = true;
79 m_creationTime = std::forward<CreationTimeT>(value);
80 }
81 template <typename CreationTimeT = Aws::Utils::DateTime>
82 GetAdapterVersionResult& WithCreationTime(CreationTimeT&& value) {
83 SetCreationTime(std::forward<CreationTimeT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
93 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
94 void SetFeatureTypes(FeatureTypesT&& value) {
95 m_featureTypesHasBeenSet = true;
96 m_featureTypes = std::forward<FeatureTypesT>(value);
97 }
98 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
99 GetAdapterVersionResult& WithFeatureTypes(FeatureTypesT&& value) {
100 SetFeatureTypes(std::forward<FeatureTypesT>(value));
101 return *this;
102 }
104 m_featureTypesHasBeenSet = true;
105 m_featureTypes.push_back(value);
106 return *this;
107 }
109
111
114 inline AdapterVersionStatus GetStatus() const { return m_status; }
115 inline void SetStatus(AdapterVersionStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
130 template <typename StatusMessageT = Aws::String>
131 void SetStatusMessage(StatusMessageT&& value) {
132 m_statusMessageHasBeenSet = true;
133 m_statusMessage = std::forward<StatusMessageT>(value);
134 }
135 template <typename StatusMessageT = Aws::String>
137 SetStatusMessage(std::forward<StatusMessageT>(value));
138 return *this;
139 }
141
143
147 inline const AdapterVersionDatasetConfig& GetDatasetConfig() const { return m_datasetConfig; }
148 template <typename DatasetConfigT = AdapterVersionDatasetConfig>
149 void SetDatasetConfig(DatasetConfigT&& value) {
150 m_datasetConfigHasBeenSet = true;
151 m_datasetConfig = std::forward<DatasetConfigT>(value);
152 }
153 template <typename DatasetConfigT = AdapterVersionDatasetConfig>
155 SetDatasetConfig(std::forward<DatasetConfigT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
166 template <typename KMSKeyIdT = Aws::String>
167 void SetKMSKeyId(KMSKeyIdT&& value) {
168 m_kMSKeyIdHasBeenSet = true;
169 m_kMSKeyId = std::forward<KMSKeyIdT>(value);
170 }
171 template <typename KMSKeyIdT = Aws::String>
173 SetKMSKeyId(std::forward<KMSKeyIdT>(value));
174 return *this;
175 }
177
179
180 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
181 template <typename OutputConfigT = OutputConfig>
182 void SetOutputConfig(OutputConfigT&& value) {
183 m_outputConfigHasBeenSet = true;
184 m_outputConfig = std::forward<OutputConfigT>(value);
185 }
186 template <typename OutputConfigT = OutputConfig>
188 SetOutputConfig(std::forward<OutputConfigT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::Vector<AdapterVersionEvaluationMetric>& GetEvaluationMetrics() const { return m_evaluationMetrics; }
199 template <typename EvaluationMetricsT = Aws::Vector<AdapterVersionEvaluationMetric>>
200 void SetEvaluationMetrics(EvaluationMetricsT&& value) {
201 m_evaluationMetricsHasBeenSet = true;
202 m_evaluationMetrics = std::forward<EvaluationMetricsT>(value);
203 }
204 template <typename EvaluationMetricsT = Aws::Vector<AdapterVersionEvaluationMetric>>
205 GetAdapterVersionResult& WithEvaluationMetrics(EvaluationMetricsT&& value) {
206 SetEvaluationMetrics(std::forward<EvaluationMetricsT>(value));
207 return *this;
208 }
209 template <typename EvaluationMetricsT = AdapterVersionEvaluationMetric>
210 GetAdapterVersionResult& AddEvaluationMetrics(EvaluationMetricsT&& value) {
211 m_evaluationMetricsHasBeenSet = true;
212 m_evaluationMetrics.emplace_back(std::forward<EvaluationMetricsT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
223 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
224 void SetTags(TagsT&& value) {
225 m_tagsHasBeenSet = true;
226 m_tags = std::forward<TagsT>(value);
227 }
228 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
230 SetTags(std::forward<TagsT>(value));
231 return *this;
232 }
233 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
234 GetAdapterVersionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
235 m_tagsHasBeenSet = true;
236 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
237 return *this;
238 }
240
242
243 inline const Aws::String& GetRequestId() const { return m_requestId; }
244 template <typename RequestIdT = Aws::String>
245 void SetRequestId(RequestIdT&& value) {
246 m_requestIdHasBeenSet = true;
247 m_requestId = std::forward<RequestIdT>(value);
248 }
249 template <typename RequestIdT = Aws::String>
251 SetRequestId(std::forward<RequestIdT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_adapterId;
257
258 Aws::String m_adapterVersion;
259
260 Aws::Utils::DateTime m_creationTime{};
261
262 Aws::Vector<FeatureType> m_featureTypes;
263
265
266 Aws::String m_statusMessage;
267
268 AdapterVersionDatasetConfig m_datasetConfig;
269
270 Aws::String m_kMSKeyId;
271
272 OutputConfig m_outputConfig;
273
275
277
278 Aws::String m_requestId;
279 bool m_adapterIdHasBeenSet = false;
280 bool m_adapterVersionHasBeenSet = false;
281 bool m_creationTimeHasBeenSet = false;
282 bool m_featureTypesHasBeenSet = false;
283 bool m_statusHasBeenSet = false;
284 bool m_statusMessageHasBeenSet = false;
285 bool m_datasetConfigHasBeenSet = false;
286 bool m_kMSKeyIdHasBeenSet = false;
287 bool m_outputConfigHasBeenSet = false;
288 bool m_evaluationMetricsHasBeenSet = false;
289 bool m_tagsHasBeenSet = false;
290 bool m_requestIdHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace Textract
295} // 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
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