AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
OntologySummary.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/OntologyStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Context {
22namespace Model {
23
33 public:
34 AWS_CONTEXT_API OntologySummary() = default;
35 AWS_CONTEXT_API OntologySummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API OntologySummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
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>
51 OntologySummary& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template <typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) {
66 m_arnHasBeenSet = true;
67 m_arn = std::forward<ArnT>(value);
68 }
69 template <typename ArnT = Aws::String>
70 OntologySummary& WithArn(ArnT&& value) {
71 SetArn(std::forward<ArnT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 OntologySummary& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 OntologySummary& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline OntologyStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(OntologyStatus value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
134 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
135 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
136 template <typename UpdatedAtT = Aws::Utils::DateTime>
137 void SetUpdatedAt(UpdatedAtT&& value) {
138 m_updatedAtHasBeenSet = true;
139 m_updatedAt = std::forward<UpdatedAtT>(value);
140 }
141 template <typename UpdatedAtT = Aws::Utils::DateTime>
142 OntologySummary& WithUpdatedAt(UpdatedAtT&& value) {
143 SetUpdatedAt(std::forward<UpdatedAtT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetOntologyInductionId() const { return m_ontologyInductionId; }
154 inline bool OntologyInductionIdHasBeenSet() const { return m_ontologyInductionIdHasBeenSet; }
155 template <typename OntologyInductionIdT = Aws::String>
156 void SetOntologyInductionId(OntologyInductionIdT&& value) {
157 m_ontologyInductionIdHasBeenSet = true;
158 m_ontologyInductionId = std::forward<OntologyInductionIdT>(value);
159 }
160 template <typename OntologyInductionIdT = Aws::String>
161 OntologySummary& WithOntologyInductionId(OntologyInductionIdT&& value) {
162 SetOntologyInductionId(std::forward<OntologyInductionIdT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::String& GetDefaultVersion() const { return m_defaultVersion; }
174 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
175 template <typename DefaultVersionT = Aws::String>
176 void SetDefaultVersion(DefaultVersionT&& value) {
177 m_defaultVersionHasBeenSet = true;
178 m_defaultVersion = std::forward<DefaultVersionT>(value);
179 }
180 template <typename DefaultVersionT = Aws::String>
181 OntologySummary& WithDefaultVersion(DefaultVersionT&& value) {
182 SetDefaultVersion(std::forward<DefaultVersionT>(value));
183 return *this;
184 }
186
188
193 inline const Aws::Utils::DateTime& GetPublishedAt() const { return m_publishedAt; }
194 inline bool PublishedAtHasBeenSet() const { return m_publishedAtHasBeenSet; }
195 template <typename PublishedAtT = Aws::Utils::DateTime>
196 void SetPublishedAt(PublishedAtT&& value) {
197 m_publishedAtHasBeenSet = true;
198 m_publishedAt = std::forward<PublishedAtT>(value);
199 }
200 template <typename PublishedAtT = Aws::Utils::DateTime>
201 OntologySummary& WithPublishedAt(PublishedAtT&& value) {
202 SetPublishedAt(std::forward<PublishedAtT>(value));
203 return *this;
204 }
206
208
212 inline long long GetNodeTypeCount() const { return m_nodeTypeCount; }
213 inline bool NodeTypeCountHasBeenSet() const { return m_nodeTypeCountHasBeenSet; }
214 inline void SetNodeTypeCount(long long value) {
215 m_nodeTypeCountHasBeenSet = true;
216 m_nodeTypeCount = value;
217 }
218 inline OntologySummary& WithNodeTypeCount(long long value) {
219 SetNodeTypeCount(value);
220 return *this;
221 }
223
225
229 inline long long GetEdgeTypeCount() const { return m_edgeTypeCount; }
230 inline bool EdgeTypeCountHasBeenSet() const { return m_edgeTypeCountHasBeenSet; }
231 inline void SetEdgeTypeCount(long long value) {
232 m_edgeTypeCountHasBeenSet = true;
233 m_edgeTypeCount = value;
234 }
235 inline OntologySummary& WithEdgeTypeCount(long long value) {
236 SetEdgeTypeCount(value);
237 return *this;
238 }
240 private:
241 Aws::String m_id;
242
243 Aws::String m_arn;
244
245 Aws::String m_name;
246
247 Aws::String m_description;
248
250
251 Aws::Utils::DateTime m_updatedAt{};
252
253 Aws::String m_ontologyInductionId;
254
255 Aws::String m_defaultVersion;
256
257 Aws::Utils::DateTime m_publishedAt{};
258
259 long long m_nodeTypeCount{0};
260
261 long long m_edgeTypeCount{0};
262 bool m_idHasBeenSet = false;
263 bool m_arnHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_descriptionHasBeenSet = false;
266 bool m_statusHasBeenSet = false;
267 bool m_updatedAtHasBeenSet = false;
268 bool m_ontologyInductionIdHasBeenSet = false;
269 bool m_defaultVersionHasBeenSet = false;
270 bool m_publishedAtHasBeenSet = false;
271 bool m_nodeTypeCountHasBeenSet = false;
272 bool m_edgeTypeCountHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace Context
277} // namespace Aws
const Aws::String & GetArn() const
void SetPublishedAt(PublishedAtT &&value)
const Aws::Utils::DateTime & GetPublishedAt() const
const Aws::String & GetDefaultVersion() const
void SetUpdatedAt(UpdatedAtT &&value)
OntologySummary & WithStatus(OntologyStatus value)
void SetStatus(OntologyStatus value)
const Aws::String & GetDescription() const
AWS_CONTEXT_API OntologySummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetName() const
OntologySummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetOntologyInductionId(OntologyInductionIdT &&value)
OntologySummary & WithEdgeTypeCount(long long value)
OntologySummary & WithName(NameT &&value)
const Aws::String & GetId() const
void SetDefaultVersion(DefaultVersionT &&value)
OntologySummary & WithDescription(DescriptionT &&value)
OntologySummary & WithId(IdT &&value)
OntologySummary & WithNodeTypeCount(long long value)
OntologySummary & WithDefaultVersion(DefaultVersionT &&value)
OntologySummary & WithPublishedAt(PublishedAtT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetOntologyInductionId() const
OntologySummary & WithArn(ArnT &&value)
OntologySummary & WithOntologyInductionId(OntologyInductionIdT &&value)
AWS_CONTEXT_API OntologySummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API OntologySummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String