AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
GetOntologyResult.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/OntologySourceFormat.h>
9#include <aws/context/model/OntologyStatus.h>
10#include <aws/context/model/OntologyValidationIssue.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/crt/cbor/Cbor.h>
16
17#include <utility>
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Cbor {
24class CborValue;
25} // namespace Cbor
26} // namespace Utils
27namespace Context {
28namespace Model {
40 public:
41 AWS_CONTEXT_API GetOntologyResult() = default;
44
46
51 inline const Aws::String& GetArn() const { return m_arn; }
52 template <typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) {
54 m_arnHasBeenSet = true;
55 m_arn = std::forward<ArnT>(value);
56 }
57 template <typename ArnT = Aws::String>
58 GetOntologyResult& WithArn(ArnT&& value) {
59 SetArn(std::forward<ArnT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetVersion() const { return m_version; }
70 template <typename VersionT = Aws::String>
71 void SetVersion(VersionT&& value) {
72 m_versionHasBeenSet = true;
73 m_version = std::forward<VersionT>(value);
74 }
75 template <typename VersionT = Aws::String>
76 GetOntologyResult& WithVersion(VersionT&& value) {
77 SetVersion(std::forward<VersionT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetTemplate() const { return m_template; }
87 template <typename TemplateT = Aws::String>
88 void SetTemplate(TemplateT&& value) {
89 m_templateHasBeenSet = true;
90 m_template = std::forward<TemplateT>(value);
91 }
92 template <typename TemplateT = Aws::String>
93 GetOntologyResult& WithTemplate(TemplateT&& value) {
94 SetTemplate(std::forward<TemplateT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
106 void SetCreatedAt(CreatedAtT&& value) {
107 m_createdAtHasBeenSet = true;
108 m_createdAt = std::forward<CreatedAtT>(value);
109 }
110 template <typename CreatedAtT = Aws::Utils::DateTime>
111 GetOntologyResult& WithCreatedAt(CreatedAtT&& value) {
112 SetCreatedAt(std::forward<CreatedAtT>(value));
113 return *this;
114 }
116
118
123 inline const Aws::Utils::DateTime& GetPublishedAt() const { return m_publishedAt; }
124 template <typename PublishedAtT = Aws::Utils::DateTime>
125 void SetPublishedAt(PublishedAtT&& value) {
126 m_publishedAtHasBeenSet = true;
127 m_publishedAt = std::forward<PublishedAtT>(value);
128 }
129 template <typename PublishedAtT = Aws::Utils::DateTime>
130 GetOntologyResult& WithPublishedAt(PublishedAtT&& value) {
131 SetPublishedAt(std::forward<PublishedAtT>(value));
132 return *this;
133 }
135
137
142 inline const Aws::String& GetName() const { return m_name; }
143 template <typename NameT = Aws::String>
144 void SetName(NameT&& value) {
145 m_nameHasBeenSet = true;
146 m_name = std::forward<NameT>(value);
147 }
148 template <typename NameT = Aws::String>
149 GetOntologyResult& WithName(NameT&& value) {
150 SetName(std::forward<NameT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetDescription() const { return m_description; }
161 template <typename DescriptionT = Aws::String>
162 void SetDescription(DescriptionT&& value) {
163 m_descriptionHasBeenSet = true;
164 m_description = std::forward<DescriptionT>(value);
165 }
166 template <typename DescriptionT = Aws::String>
167 GetOntologyResult& WithDescription(DescriptionT&& value) {
168 SetDescription(std::forward<DescriptionT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::String& GetDerivationVersion() const { return m_derivationVersion; }
179 template <typename DerivationVersionT = Aws::String>
180 void SetDerivationVersion(DerivationVersionT&& value) {
181 m_derivationVersionHasBeenSet = true;
182 m_derivationVersion = std::forward<DerivationVersionT>(value);
183 }
184 template <typename DerivationVersionT = Aws::String>
185 GetOntologyResult& WithDerivationVersion(DerivationVersionT&& value) {
186 SetDerivationVersion(std::forward<DerivationVersionT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetId() const { return m_id; }
196 template <typename IdT = Aws::String>
197 void SetId(IdT&& value) {
198 m_idHasBeenSet = true;
199 m_id = std::forward<IdT>(value);
200 }
201 template <typename IdT = Aws::String>
202 GetOntologyResult& WithId(IdT&& value) {
203 SetId(std::forward<IdT>(value));
204 return *this;
205 }
207
209
215 inline OntologyStatus GetStatus() const { return m_status; }
216 inline void SetStatus(OntologyStatus value) {
217 m_statusHasBeenSet = true;
218 m_status = value;
219 }
221 SetStatus(value);
222 return *this;
223 }
225
227
232 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
233 template <typename UpdatedAtT = Aws::Utils::DateTime>
234 void SetUpdatedAt(UpdatedAtT&& value) {
235 m_updatedAtHasBeenSet = true;
236 m_updatedAt = std::forward<UpdatedAtT>(value);
237 }
238 template <typename UpdatedAtT = Aws::Utils::DateTime>
239 GetOntologyResult& WithUpdatedAt(UpdatedAtT&& value) {
240 SetUpdatedAt(std::forward<UpdatedAtT>(value));
241 return *this;
242 }
244
246
250 inline const Aws::String& GetOntologyInductionId() const { return m_ontologyInductionId; }
251 template <typename OntologyInductionIdT = Aws::String>
252 void SetOntologyInductionId(OntologyInductionIdT&& value) {
253 m_ontologyInductionIdHasBeenSet = true;
254 m_ontologyInductionId = std::forward<OntologyInductionIdT>(value);
255 }
256 template <typename OntologyInductionIdT = Aws::String>
257 GetOntologyResult& WithOntologyInductionId(OntologyInductionIdT&& value) {
258 SetOntologyInductionId(std::forward<OntologyInductionIdT>(value));
259 return *this;
260 }
262
264
269 inline const Aws::String& GetSource() const { return m_source; }
270 template <typename SourceT = Aws::String>
271 void SetSource(SourceT&& value) {
272 m_sourceHasBeenSet = true;
273 m_source = std::forward<SourceT>(value);
274 }
275 template <typename SourceT = Aws::String>
276 GetOntologyResult& WithSource(SourceT&& value) {
277 SetSource(std::forward<SourceT>(value));
278 return *this;
279 }
281
283
291 inline OntologySourceFormat GetSourceFormat() const { return m_sourceFormat; }
293 m_sourceFormatHasBeenSet = true;
294 m_sourceFormat = value;
295 }
297 SetSourceFormat(value);
298 return *this;
299 }
301
303
306 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
307 template <typename RevisionIdT = Aws::String>
308 void SetRevisionId(RevisionIdT&& value) {
309 m_revisionIdHasBeenSet = true;
310 m_revisionId = std::forward<RevisionIdT>(value);
311 }
312 template <typename RevisionIdT = Aws::String>
313 GetOntologyResult& WithRevisionId(RevisionIdT&& value) {
314 SetRevisionId(std::forward<RevisionIdT>(value));
315 return *this;
316 }
318
320
324 inline const Aws::Vector<OntologyValidationIssue>& GetValidationIssues() const { return m_validationIssues; }
325 template <typename ValidationIssuesT = Aws::Vector<OntologyValidationIssue>>
326 void SetValidationIssues(ValidationIssuesT&& value) {
327 m_validationIssuesHasBeenSet = true;
328 m_validationIssues = std::forward<ValidationIssuesT>(value);
329 }
330 template <typename ValidationIssuesT = Aws::Vector<OntologyValidationIssue>>
331 GetOntologyResult& WithValidationIssues(ValidationIssuesT&& value) {
332 SetValidationIssues(std::forward<ValidationIssuesT>(value));
333 return *this;
334 }
335 template <typename ValidationIssuesT = OntologyValidationIssue>
336 GetOntologyResult& AddValidationIssues(ValidationIssuesT&& value) {
337 m_validationIssuesHasBeenSet = true;
338 m_validationIssues.emplace_back(std::forward<ValidationIssuesT>(value));
339 return *this;
340 }
342
344
345 inline const Aws::String& GetRequestId() const { return m_requestId; }
346 template <typename RequestIdT = Aws::String>
347 void SetRequestId(RequestIdT&& value) {
348 m_requestIdHasBeenSet = true;
349 m_requestId = std::forward<RequestIdT>(value);
350 }
351 template <typename RequestIdT = Aws::String>
352 GetOntologyResult& WithRequestId(RequestIdT&& value) {
353 SetRequestId(std::forward<RequestIdT>(value));
354 return *this;
355 }
357 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
358
359 private:
360 Aws::String m_arn;
361
362 Aws::String m_version;
363
364 Aws::String m_template;
365
366 Aws::Utils::DateTime m_createdAt{};
367
368 Aws::Utils::DateTime m_publishedAt{};
369
370 Aws::String m_name;
371
372 Aws::String m_description;
373
374 Aws::String m_derivationVersion;
375
376 Aws::String m_id;
377
379
380 Aws::Utils::DateTime m_updatedAt{};
381
382 Aws::String m_ontologyInductionId;
383
384 Aws::String m_source;
385
387
388 Aws::String m_revisionId;
389
390 Aws::Vector<OntologyValidationIssue> m_validationIssues;
391
392 Aws::String m_requestId;
393 Aws::Http::HttpResponseCode m_HttpResponseCode;
394 bool m_arnHasBeenSet = false;
395 bool m_versionHasBeenSet = false;
396 bool m_templateHasBeenSet = false;
397 bool m_createdAtHasBeenSet = false;
398 bool m_publishedAtHasBeenSet = false;
399 bool m_nameHasBeenSet = false;
400 bool m_descriptionHasBeenSet = false;
401 bool m_derivationVersionHasBeenSet = false;
402 bool m_idHasBeenSet = false;
403 bool m_statusHasBeenSet = false;
404 bool m_updatedAtHasBeenSet = false;
405 bool m_ontologyInductionIdHasBeenSet = false;
406 bool m_sourceHasBeenSet = false;
407 bool m_sourceFormatHasBeenSet = false;
408 bool m_revisionIdHasBeenSet = false;
409 bool m_validationIssuesHasBeenSet = false;
410 bool m_requestIdHasBeenSet = false;
411};
412
413} // namespace Model
414} // namespace Context
415} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
GetOntologyResult & WithRequestId(RequestIdT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetRevisionId() const
void SetPublishedAt(PublishedAtT &&value)
GetOntologyResult & WithPublishedAt(PublishedAtT &&value)
GetOntologyResult & WithTemplate(TemplateT &&value)
void SetOntologyInductionId(OntologyInductionIdT &&value)
GetOntologyResult & WithSourceFormat(OntologySourceFormat value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetPublishedAt() const
const Aws::String & GetSource() const
GetOntologyResult & WithId(IdT &&value)
GetOntologyResult & WithUpdatedAt(UpdatedAtT &&value)
OntologySourceFormat GetSourceFormat() const
void SetSourceFormat(OntologySourceFormat value)
GetOntologyResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetOntologyInductionId() const
GetOntologyResult & WithArn(ArnT &&value)
const Aws::String & GetVersion() const
GetOntologyResult & WithVersion(VersionT &&value)
const Aws::String & GetDerivationVersion() const
const Aws::Vector< OntologyValidationIssue > & GetValidationIssues() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetDerivationVersion(DerivationVersionT &&value)
GetOntologyResult & WithDerivationVersion(DerivationVersionT &&value)
AWS_CONTEXT_API GetOntologyResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CONTEXT_API GetOntologyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
const Aws::String & GetTemplate() const
void SetValidationIssues(ValidationIssuesT &&value)
GetOntologyResult & WithDescription(DescriptionT &&value)
GetOntologyResult & AddValidationIssues(ValidationIssuesT &&value)
GetOntologyResult & WithStatus(OntologyStatus value)
GetOntologyResult & WithName(NameT &&value)
GetOntologyResult & WithSource(SourceT &&value)
GetOntologyResult & WithOntologyInductionId(OntologyInductionIdT &&value)
GetOntologyResult & WithRevisionId(RevisionIdT &&value)
AWS_CONTEXT_API GetOntologyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
GetOntologyResult & WithValidationIssues(ValidationIssuesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector