AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GlossaryTermItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/GlossaryTermItemAdditionalAttributes.h>
12#include <aws/datazone/model/GlossaryTermStatus.h>
13#include <aws/datazone/model/GlossaryUsageRestriction.h>
14#include <aws/datazone/model/TermRelations.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
27
34 public:
35 AWS_DATAZONE_API GlossaryTermItem() = default;
36 AWS_DATAZONE_API GlossaryTermItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetDomainId() const { return m_domainId; }
46 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
47 template <typename DomainIdT = Aws::String>
48 void SetDomainId(DomainIdT&& value) {
49 m_domainIdHasBeenSet = true;
50 m_domainId = std::forward<DomainIdT>(value);
51 }
52 template <typename DomainIdT = Aws::String>
53 GlossaryTermItem& WithDomainId(DomainIdT&& value) {
54 SetDomainId(std::forward<DomainIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetGlossaryId() const { return m_glossaryId; }
64 inline bool GlossaryIdHasBeenSet() const { return m_glossaryIdHasBeenSet; }
65 template <typename GlossaryIdT = Aws::String>
66 void SetGlossaryId(GlossaryIdT&& value) {
67 m_glossaryIdHasBeenSet = true;
68 m_glossaryId = std::forward<GlossaryIdT>(value);
69 }
70 template <typename GlossaryIdT = Aws::String>
71 GlossaryTermItem& WithGlossaryId(GlossaryIdT&& value) {
72 SetGlossaryId(std::forward<GlossaryIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetId() const { return m_id; }
82 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
83 template <typename IdT = Aws::String>
84 void SetId(IdT&& value) {
85 m_idHasBeenSet = true;
86 m_id = std::forward<IdT>(value);
87 }
88 template <typename IdT = Aws::String>
89 GlossaryTermItem& WithId(IdT&& value) {
90 SetId(std::forward<IdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 template <typename NameT = Aws::String>
102 void SetName(NameT&& value) {
103 m_nameHasBeenSet = true;
104 m_name = std::forward<NameT>(value);
105 }
106 template <typename NameT = Aws::String>
107 GlossaryTermItem& WithName(NameT&& value) {
108 SetName(std::forward<NameT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
118 inline bool ShortDescriptionHasBeenSet() const { return m_shortDescriptionHasBeenSet; }
119 template <typename ShortDescriptionT = Aws::String>
120 void SetShortDescription(ShortDescriptionT&& value) {
121 m_shortDescriptionHasBeenSet = true;
122 m_shortDescription = std::forward<ShortDescriptionT>(value);
123 }
124 template <typename ShortDescriptionT = Aws::String>
125 GlossaryTermItem& WithShortDescription(ShortDescriptionT&& value) {
126 SetShortDescription(std::forward<ShortDescriptionT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
136 inline bool UsageRestrictionsHasBeenSet() const { return m_usageRestrictionsHasBeenSet; }
137 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
138 void SetUsageRestrictions(UsageRestrictionsT&& value) {
139 m_usageRestrictionsHasBeenSet = true;
140 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
141 }
142 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
143 GlossaryTermItem& WithUsageRestrictions(UsageRestrictionsT&& value) {
144 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
145 return *this;
146 }
148 m_usageRestrictionsHasBeenSet = true;
149 m_usageRestrictions.push_back(value);
150 return *this;
151 }
153
155
158 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
159 inline bool LongDescriptionHasBeenSet() const { return m_longDescriptionHasBeenSet; }
160 template <typename LongDescriptionT = Aws::String>
161 void SetLongDescription(LongDescriptionT&& value) {
162 m_longDescriptionHasBeenSet = true;
163 m_longDescription = std::forward<LongDescriptionT>(value);
164 }
165 template <typename LongDescriptionT = Aws::String>
166 GlossaryTermItem& WithLongDescription(LongDescriptionT&& value) {
167 SetLongDescription(std::forward<LongDescriptionT>(value));
168 return *this;
169 }
171
173
176 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
177 inline bool TermRelationsHasBeenSet() const { return m_termRelationsHasBeenSet; }
178 template <typename TermRelationsT = TermRelations>
179 void SetTermRelations(TermRelationsT&& value) {
180 m_termRelationsHasBeenSet = true;
181 m_termRelations = std::forward<TermRelationsT>(value);
182 }
183 template <typename TermRelationsT = TermRelations>
184 GlossaryTermItem& WithTermRelations(TermRelationsT&& value) {
185 SetTermRelations(std::forward<TermRelationsT>(value));
186 return *this;
187 }
189
191
194 inline GlossaryTermStatus GetStatus() const { return m_status; }
195 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
196 inline void SetStatus(GlossaryTermStatus value) {
197 m_statusHasBeenSet = true;
198 m_status = value;
199 }
201 SetStatus(value);
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
211 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
212 template <typename CreatedAtT = Aws::Utils::DateTime>
213 void SetCreatedAt(CreatedAtT&& value) {
214 m_createdAtHasBeenSet = true;
215 m_createdAt = std::forward<CreatedAtT>(value);
216 }
217 template <typename CreatedAtT = Aws::Utils::DateTime>
218 GlossaryTermItem& WithCreatedAt(CreatedAtT&& value) {
219 SetCreatedAt(std::forward<CreatedAtT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
229 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
230 template <typename CreatedByT = Aws::String>
231 void SetCreatedBy(CreatedByT&& value) {
232 m_createdByHasBeenSet = true;
233 m_createdBy = std::forward<CreatedByT>(value);
234 }
235 template <typename CreatedByT = Aws::String>
236 GlossaryTermItem& WithCreatedBy(CreatedByT&& value) {
237 SetCreatedBy(std::forward<CreatedByT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
247 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
248 template <typename UpdatedAtT = Aws::Utils::DateTime>
249 void SetUpdatedAt(UpdatedAtT&& value) {
250 m_updatedAtHasBeenSet = true;
251 m_updatedAt = std::forward<UpdatedAtT>(value);
252 }
253 template <typename UpdatedAtT = Aws::Utils::DateTime>
254 GlossaryTermItem& WithUpdatedAt(UpdatedAtT&& value) {
255 SetUpdatedAt(std::forward<UpdatedAtT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
265 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
266 template <typename UpdatedByT = Aws::String>
267 void SetUpdatedBy(UpdatedByT&& value) {
268 m_updatedByHasBeenSet = true;
269 m_updatedBy = std::forward<UpdatedByT>(value);
270 }
271 template <typename UpdatedByT = Aws::String>
272 GlossaryTermItem& WithUpdatedBy(UpdatedByT&& value) {
273 SetUpdatedBy(std::forward<UpdatedByT>(value));
274 return *this;
275 }
277
279
282 inline const GlossaryTermItemAdditionalAttributes& GetAdditionalAttributes() const { return m_additionalAttributes; }
283 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
284 template <typename AdditionalAttributesT = GlossaryTermItemAdditionalAttributes>
285 void SetAdditionalAttributes(AdditionalAttributesT&& value) {
286 m_additionalAttributesHasBeenSet = true;
287 m_additionalAttributes = std::forward<AdditionalAttributesT>(value);
288 }
289 template <typename AdditionalAttributesT = GlossaryTermItemAdditionalAttributes>
290 GlossaryTermItem& WithAdditionalAttributes(AdditionalAttributesT&& value) {
291 SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value));
292 return *this;
293 }
295 private:
296 Aws::String m_domainId;
297
298 Aws::String m_glossaryId;
299
300 Aws::String m_id;
301
302 Aws::String m_name;
303
304 Aws::String m_shortDescription;
305
306 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
307
308 Aws::String m_longDescription;
309
310 TermRelations m_termRelations;
311
313
314 Aws::Utils::DateTime m_createdAt{};
315
316 Aws::String m_createdBy;
317
318 Aws::Utils::DateTime m_updatedAt{};
319
320 Aws::String m_updatedBy;
321
322 GlossaryTermItemAdditionalAttributes m_additionalAttributes;
323 bool m_domainIdHasBeenSet = false;
324 bool m_glossaryIdHasBeenSet = false;
325 bool m_idHasBeenSet = false;
326 bool m_nameHasBeenSet = false;
327 bool m_shortDescriptionHasBeenSet = false;
328 bool m_usageRestrictionsHasBeenSet = false;
329 bool m_longDescriptionHasBeenSet = false;
330 bool m_termRelationsHasBeenSet = false;
331 bool m_statusHasBeenSet = false;
332 bool m_createdAtHasBeenSet = false;
333 bool m_createdByHasBeenSet = false;
334 bool m_updatedAtHasBeenSet = false;
335 bool m_updatedByHasBeenSet = false;
336 bool m_additionalAttributesHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace DataZone
341} // namespace Aws
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
GlossaryTermItem & WithName(NameT &&value)
void SetGlossaryId(GlossaryIdT &&value)
GlossaryTermItem & WithUsageRestrictions(UsageRestrictionsT &&value)
AWS_DATAZONE_API GlossaryTermItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
const GlossaryTermItemAdditionalAttributes & GetAdditionalAttributes() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetUpdatedBy() const
void SetAdditionalAttributes(AdditionalAttributesT &&value)
const Aws::String & GetGlossaryId() const
GlossaryTermItem & WithUpdatedBy(UpdatedByT &&value)
GlossaryTermItem & WithStatus(GlossaryTermStatus value)
GlossaryTermItem & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetCreatedBy() const
GlossaryTermItem & WithLongDescription(LongDescriptionT &&value)
GlossaryTermItem & WithGlossaryId(GlossaryIdT &&value)
const Aws::String & GetId() const
GlossaryTermItem & WithUpdatedAt(UpdatedAtT &&value)
void SetStatus(GlossaryTermStatus value)
AWS_DATAZONE_API GlossaryTermItem(Aws::Utils::Json::JsonView jsonValue)
void SetUsageRestrictions(UsageRestrictionsT &&value)
void SetLongDescription(LongDescriptionT &&value)
GlossaryTermItem & WithAdditionalAttributes(AdditionalAttributesT &&value)
GlossaryTermItem & WithDomainId(DomainIdT &&value)
void SetTermRelations(TermRelationsT &&value)
GlossaryTermItem & AddUsageRestrictions(GlossaryUsageRestriction value)
void SetShortDescription(ShortDescriptionT &&value)
GlossaryTermItem & WithShortDescription(ShortDescriptionT &&value)
const Aws::String & GetDomainId() const
GlossaryTermItem & WithId(IdT &&value)
const TermRelations & GetTermRelations() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_DATAZONE_API GlossaryTermItem()=default
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLongDescription() const
const Aws::String & GetShortDescription() const
GlossaryTermItem & WithCreatedAt(CreatedAtT &&value)
GlossaryTermItem & WithTermRelations(TermRelationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue