AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateOntologyResult.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/OntologyValidationIssue.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/crt/cbor/Cbor.h>
14
15#include <utility>
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace Context {
26namespace Model {
35 public:
36 AWS_CONTEXT_API CreateOntologyResult() = default;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
80 template <typename UpdatedAtT = Aws::Utils::DateTime>
81 void SetUpdatedAt(UpdatedAtT&& value) {
82 m_updatedAtHasBeenSet = true;
83 m_updatedAt = std::forward<UpdatedAtT>(value);
84 }
85 template <typename UpdatedAtT = Aws::Utils::DateTime>
86 CreateOntologyResult& WithUpdatedAt(UpdatedAtT&& value) {
87 SetUpdatedAt(std::forward<UpdatedAtT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetDescription() const { return m_description; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 CreateOntologyResult& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetVersion() const { return m_version; }
133 template <typename VersionT = Aws::String>
134 void SetVersion(VersionT&& value) {
135 m_versionHasBeenSet = true;
136 m_version = std::forward<VersionT>(value);
137 }
138 template <typename VersionT = Aws::String>
140 SetVersion(std::forward<VersionT>(value));
141 return *this;
142 }
144
146
153 inline const Aws::Vector<OntologyValidationIssue>& GetValidationIssues() const { return m_validationIssues; }
154 template <typename ValidationIssuesT = Aws::Vector<OntologyValidationIssue>>
155 void SetValidationIssues(ValidationIssuesT&& value) {
156 m_validationIssuesHasBeenSet = true;
157 m_validationIssues = std::forward<ValidationIssuesT>(value);
158 }
159 template <typename ValidationIssuesT = Aws::Vector<OntologyValidationIssue>>
160 CreateOntologyResult& WithValidationIssues(ValidationIssuesT&& value) {
161 SetValidationIssues(std::forward<ValidationIssuesT>(value));
162 return *this;
163 }
164 template <typename ValidationIssuesT = OntologyValidationIssue>
165 CreateOntologyResult& AddValidationIssues(ValidationIssuesT&& value) {
166 m_validationIssuesHasBeenSet = true;
167 m_validationIssues.emplace_back(std::forward<ValidationIssuesT>(value));
168 return *this;
169 }
171
173
174 inline const Aws::String& GetRequestId() const { return m_requestId; }
175 template <typename RequestIdT = Aws::String>
176 void SetRequestId(RequestIdT&& value) {
177 m_requestIdHasBeenSet = true;
178 m_requestId = std::forward<RequestIdT>(value);
179 }
180 template <typename RequestIdT = Aws::String>
181 CreateOntologyResult& WithRequestId(RequestIdT&& value) {
182 SetRequestId(std::forward<RequestIdT>(value));
183 return *this;
184 }
186 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
187
188 private:
189 Aws::String m_id;
190
191 Aws::String m_arn;
192
193 Aws::Utils::DateTime m_updatedAt{};
194
195 Aws::String m_name;
196
197 Aws::String m_description;
198
199 Aws::String m_version;
200
201 Aws::Vector<OntologyValidationIssue> m_validationIssues;
202
203 Aws::String m_requestId;
204 Aws::Http::HttpResponseCode m_HttpResponseCode;
205 bool m_idHasBeenSet = false;
206 bool m_arnHasBeenSet = false;
207 bool m_updatedAtHasBeenSet = false;
208 bool m_nameHasBeenSet = false;
209 bool m_descriptionHasBeenSet = false;
210 bool m_versionHasBeenSet = false;
211 bool m_validationIssuesHasBeenSet = false;
212 bool m_requestIdHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace Context
217} // namespace Aws
CreateOntologyResult & WithName(NameT &&value)
CreateOntologyResult & WithDescription(DescriptionT &&value)
CreateOntologyResult & WithRequestId(RequestIdT &&value)
void SetValidationIssues(ValidationIssuesT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
CreateOntologyResult & WithId(IdT &&value)
AWS_CONTEXT_API CreateOntologyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
CreateOntologyResult & AddValidationIssues(ValidationIssuesT &&value)
AWS_CONTEXT_API CreateOntologyResult()=default
CreateOntologyResult & WithValidationIssues(ValidationIssuesT &&value)
const Aws::Vector< OntologyValidationIssue > & GetValidationIssues() const
AWS_CONTEXT_API CreateOntologyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
CreateOntologyResult & WithUpdatedAt(UpdatedAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateOntologyResult & WithArn(ArnT &&value)
CreateOntologyResult & WithVersion(VersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector