AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GlossaryItem.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/GlossaryItemAdditionalAttributes.h>
12#include <aws/datazone/model/GlossaryStatus.h>
13#include <aws/datazone/model/GlossaryUsageRestriction.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
26
33 public:
34 AWS_DATAZONE_API GlossaryItem() = default;
35 AWS_DATAZONE_API GlossaryItem(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetDomainId() const { return m_domainId; }
45 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
46 template <typename DomainIdT = Aws::String>
47 void SetDomainId(DomainIdT&& value) {
48 m_domainIdHasBeenSet = true;
49 m_domainId = std::forward<DomainIdT>(value);
50 }
51 template <typename DomainIdT = Aws::String>
52 GlossaryItem& WithDomainId(DomainIdT&& value) {
53 SetDomainId(std::forward<DomainIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetId() const { return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 template <typename IdT = Aws::String>
65 void SetId(IdT&& value) {
66 m_idHasBeenSet = true;
67 m_id = std::forward<IdT>(value);
68 }
69 template <typename IdT = Aws::String>
70 GlossaryItem& WithId(IdT&& value) {
71 SetId(std::forward<IdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 GlossaryItem& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
99 inline bool OwningProjectIdHasBeenSet() const { return m_owningProjectIdHasBeenSet; }
100 template <typename OwningProjectIdT = Aws::String>
101 void SetOwningProjectId(OwningProjectIdT&& value) {
102 m_owningProjectIdHasBeenSet = true;
103 m_owningProjectId = std::forward<OwningProjectIdT>(value);
104 }
105 template <typename OwningProjectIdT = Aws::String>
106 GlossaryItem& WithOwningProjectId(OwningProjectIdT&& value) {
107 SetOwningProjectId(std::forward<OwningProjectIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
124 GlossaryItem& WithDescription(DescriptionT&& value) {
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
134 inline GlossaryStatus GetStatus() const { return m_status; }
135 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
136 inline void SetStatus(GlossaryStatus value) {
137 m_statusHasBeenSet = true;
138 m_status = value;
139 }
141 SetStatus(value);
142 return *this;
143 }
145
147
150 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
151 inline bool UsageRestrictionsHasBeenSet() const { return m_usageRestrictionsHasBeenSet; }
152 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
153 void SetUsageRestrictions(UsageRestrictionsT&& value) {
154 m_usageRestrictionsHasBeenSet = true;
155 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
156 }
157 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
158 GlossaryItem& WithUsageRestrictions(UsageRestrictionsT&& value) {
159 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
160 return *this;
161 }
163 m_usageRestrictionsHasBeenSet = true;
164 m_usageRestrictions.push_back(value);
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
174 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
176 void SetCreatedAt(CreatedAtT&& value) {
177 m_createdAtHasBeenSet = true;
178 m_createdAt = std::forward<CreatedAtT>(value);
179 }
180 template <typename CreatedAtT = Aws::Utils::DateTime>
181 GlossaryItem& WithCreatedAt(CreatedAtT&& value) {
182 SetCreatedAt(std::forward<CreatedAtT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
192 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
193 template <typename CreatedByT = Aws::String>
194 void SetCreatedBy(CreatedByT&& value) {
195 m_createdByHasBeenSet = true;
196 m_createdBy = std::forward<CreatedByT>(value);
197 }
198 template <typename CreatedByT = Aws::String>
199 GlossaryItem& WithCreatedBy(CreatedByT&& value) {
200 SetCreatedBy(std::forward<CreatedByT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
210 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
211 template <typename UpdatedAtT = Aws::Utils::DateTime>
212 void SetUpdatedAt(UpdatedAtT&& value) {
213 m_updatedAtHasBeenSet = true;
214 m_updatedAt = std::forward<UpdatedAtT>(value);
215 }
216 template <typename UpdatedAtT = Aws::Utils::DateTime>
217 GlossaryItem& WithUpdatedAt(UpdatedAtT&& value) {
218 SetUpdatedAt(std::forward<UpdatedAtT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
228 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
229 template <typename UpdatedByT = Aws::String>
230 void SetUpdatedBy(UpdatedByT&& value) {
231 m_updatedByHasBeenSet = true;
232 m_updatedBy = std::forward<UpdatedByT>(value);
233 }
234 template <typename UpdatedByT = Aws::String>
235 GlossaryItem& WithUpdatedBy(UpdatedByT&& value) {
236 SetUpdatedBy(std::forward<UpdatedByT>(value));
237 return *this;
238 }
240
242
245 inline const GlossaryItemAdditionalAttributes& GetAdditionalAttributes() const { return m_additionalAttributes; }
246 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
247 template <typename AdditionalAttributesT = GlossaryItemAdditionalAttributes>
248 void SetAdditionalAttributes(AdditionalAttributesT&& value) {
249 m_additionalAttributesHasBeenSet = true;
250 m_additionalAttributes = std::forward<AdditionalAttributesT>(value);
251 }
252 template <typename AdditionalAttributesT = GlossaryItemAdditionalAttributes>
253 GlossaryItem& WithAdditionalAttributes(AdditionalAttributesT&& value) {
254 SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_domainId;
260
261 Aws::String m_id;
262
263 Aws::String m_name;
264
265 Aws::String m_owningProjectId;
266
267 Aws::String m_description;
268
270
271 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
272
273 Aws::Utils::DateTime m_createdAt{};
274
275 Aws::String m_createdBy;
276
277 Aws::Utils::DateTime m_updatedAt{};
278
279 Aws::String m_updatedBy;
280
281 GlossaryItemAdditionalAttributes m_additionalAttributes;
282 bool m_domainIdHasBeenSet = false;
283 bool m_idHasBeenSet = false;
284 bool m_nameHasBeenSet = false;
285 bool m_owningProjectIdHasBeenSet = false;
286 bool m_descriptionHasBeenSet = false;
287 bool m_statusHasBeenSet = false;
288 bool m_usageRestrictionsHasBeenSet = false;
289 bool m_createdAtHasBeenSet = false;
290 bool m_createdByHasBeenSet = false;
291 bool m_updatedAtHasBeenSet = false;
292 bool m_updatedByHasBeenSet = false;
293 bool m_additionalAttributesHasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace DataZone
298} // namespace Aws
const Aws::String & GetCreatedBy() const
GlossaryItem & WithCreatedBy(CreatedByT &&value)
void SetStatus(GlossaryStatus value)
GlossaryItem & AddUsageRestrictions(GlossaryUsageRestriction value)
GlossaryItem & WithCreatedAt(CreatedAtT &&value)
GlossaryItem & WithUpdatedBy(UpdatedByT &&value)
GlossaryItem & WithDescription(DescriptionT &&value)
const Aws::String & GetUpdatedBy() const
void SetDomainId(DomainIdT &&value)
GlossaryItem & WithName(NameT &&value)
GlossaryItem & WithOwningProjectId(OwningProjectIdT &&value)
const Aws::String & GetDescription() const
void SetOwningProjectId(OwningProjectIdT &&value)
void SetAdditionalAttributes(AdditionalAttributesT &&value)
GlossaryItem & WithStatus(GlossaryStatus value)
const Aws::String & GetOwningProjectId() const
void SetCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API GlossaryItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDomainId() const
GlossaryStatus GetStatus() const
void SetUsageRestrictions(UsageRestrictionsT &&value)
GlossaryItem & WithUpdatedAt(UpdatedAtT &&value)
GlossaryItem & WithAdditionalAttributes(AdditionalAttributesT &&value)
AWS_DATAZONE_API GlossaryItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
const Aws::String & GetName() const
AWS_DATAZONE_API GlossaryItem()=default
void SetCreatedBy(CreatedByT &&value)
GlossaryItem & WithDomainId(DomainIdT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetDescription(DescriptionT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
GlossaryItem & WithUsageRestrictions(UsageRestrictionsT &&value)
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
void SetUpdatedBy(UpdatedByT &&value)
GlossaryItem & WithId(IdT &&value)
const GlossaryItemAdditionalAttributes & GetAdditionalAttributes() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue