AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AssetItem.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/AssetItemAdditionalAttributes.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataZone {
23namespace Model {
24
30class AssetItem {
31 public:
32 AWS_DATAZONE_API AssetItem() = default;
33 AWS_DATAZONE_API AssetItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAZONE_API AssetItem& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetDomainId() const { return m_domainId; }
43 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
44 template <typename DomainIdT = Aws::String>
45 void SetDomainId(DomainIdT&& value) {
46 m_domainIdHasBeenSet = true;
47 m_domainId = std::forward<DomainIdT>(value);
48 }
49 template <typename DomainIdT = Aws::String>
50 AssetItem& WithDomainId(DomainIdT&& value) {
51 SetDomainId(std::forward<DomainIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetIdentifier() const { return m_identifier; }
61 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
62 template <typename IdentifierT = Aws::String>
63 void SetIdentifier(IdentifierT&& value) {
64 m_identifierHasBeenSet = true;
65 m_identifier = std::forward<IdentifierT>(value);
66 }
67 template <typename IdentifierT = Aws::String>
68 AssetItem& WithIdentifier(IdentifierT&& value) {
69 SetIdentifier(std::forward<IdentifierT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 AssetItem& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetTypeIdentifier() const { return m_typeIdentifier; }
98 inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
99 template <typename TypeIdentifierT = Aws::String>
100 void SetTypeIdentifier(TypeIdentifierT&& value) {
101 m_typeIdentifierHasBeenSet = true;
102 m_typeIdentifier = std::forward<TypeIdentifierT>(value);
103 }
104 template <typename TypeIdentifierT = Aws::String>
105 AssetItem& WithTypeIdentifier(TypeIdentifierT&& value) {
106 SetTypeIdentifier(std::forward<TypeIdentifierT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTypeRevision() const { return m_typeRevision; }
116 inline bool TypeRevisionHasBeenSet() const { return m_typeRevisionHasBeenSet; }
117 template <typename TypeRevisionT = Aws::String>
118 void SetTypeRevision(TypeRevisionT&& value) {
119 m_typeRevisionHasBeenSet = true;
120 m_typeRevision = std::forward<TypeRevisionT>(value);
121 }
122 template <typename TypeRevisionT = Aws::String>
123 AssetItem& WithTypeRevision(TypeRevisionT&& value) {
124 SetTypeRevision(std::forward<TypeRevisionT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetExternalIdentifier() const { return m_externalIdentifier; }
134 inline bool ExternalIdentifierHasBeenSet() const { return m_externalIdentifierHasBeenSet; }
135 template <typename ExternalIdentifierT = Aws::String>
136 void SetExternalIdentifier(ExternalIdentifierT&& value) {
137 m_externalIdentifierHasBeenSet = true;
138 m_externalIdentifier = std::forward<ExternalIdentifierT>(value);
139 }
140 template <typename ExternalIdentifierT = Aws::String>
141 AssetItem& WithExternalIdentifier(ExternalIdentifierT&& value) {
142 SetExternalIdentifier(std::forward<ExternalIdentifierT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetDescription() const { return m_description; }
152 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
153 template <typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) {
155 m_descriptionHasBeenSet = true;
156 m_description = std::forward<DescriptionT>(value);
157 }
158 template <typename DescriptionT = Aws::String>
159 AssetItem& WithDescription(DescriptionT&& value) {
160 SetDescription(std::forward<DescriptionT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
170 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
171 template <typename CreatedAtT = Aws::Utils::DateTime>
172 void SetCreatedAt(CreatedAtT&& value) {
173 m_createdAtHasBeenSet = true;
174 m_createdAt = std::forward<CreatedAtT>(value);
175 }
176 template <typename CreatedAtT = Aws::Utils::DateTime>
177 AssetItem& WithCreatedAt(CreatedAtT&& value) {
178 SetCreatedAt(std::forward<CreatedAtT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
188 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
189 template <typename CreatedByT = Aws::String>
190 void SetCreatedBy(CreatedByT&& value) {
191 m_createdByHasBeenSet = true;
192 m_createdBy = std::forward<CreatedByT>(value);
193 }
194 template <typename CreatedByT = Aws::String>
195 AssetItem& WithCreatedBy(CreatedByT&& value) {
196 SetCreatedBy(std::forward<CreatedByT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::Utils::DateTime& GetFirstRevisionCreatedAt() const { return m_firstRevisionCreatedAt; }
207 inline bool FirstRevisionCreatedAtHasBeenSet() const { return m_firstRevisionCreatedAtHasBeenSet; }
208 template <typename FirstRevisionCreatedAtT = Aws::Utils::DateTime>
209 void SetFirstRevisionCreatedAt(FirstRevisionCreatedAtT&& value) {
210 m_firstRevisionCreatedAtHasBeenSet = true;
211 m_firstRevisionCreatedAt = std::forward<FirstRevisionCreatedAtT>(value);
212 }
213 template <typename FirstRevisionCreatedAtT = Aws::Utils::DateTime>
214 AssetItem& WithFirstRevisionCreatedAt(FirstRevisionCreatedAtT&& value) {
215 SetFirstRevisionCreatedAt(std::forward<FirstRevisionCreatedAtT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::String& GetFirstRevisionCreatedBy() const { return m_firstRevisionCreatedBy; }
226 inline bool FirstRevisionCreatedByHasBeenSet() const { return m_firstRevisionCreatedByHasBeenSet; }
227 template <typename FirstRevisionCreatedByT = Aws::String>
228 void SetFirstRevisionCreatedBy(FirstRevisionCreatedByT&& value) {
229 m_firstRevisionCreatedByHasBeenSet = true;
230 m_firstRevisionCreatedBy = std::forward<FirstRevisionCreatedByT>(value);
231 }
232 template <typename FirstRevisionCreatedByT = Aws::String>
233 AssetItem& WithFirstRevisionCreatedBy(FirstRevisionCreatedByT&& value) {
234 SetFirstRevisionCreatedBy(std::forward<FirstRevisionCreatedByT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
244 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
245 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
246 void SetGlossaryTerms(GlossaryTermsT&& value) {
247 m_glossaryTermsHasBeenSet = true;
248 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
249 }
250 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
251 AssetItem& WithGlossaryTerms(GlossaryTermsT&& value) {
252 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
253 return *this;
254 }
255 template <typename GlossaryTermsT = Aws::String>
256 AssetItem& AddGlossaryTerms(GlossaryTermsT&& value) {
257 m_glossaryTermsHasBeenSet = true;
258 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
259 return *this;
260 }
262
264
268 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
269 inline bool OwningProjectIdHasBeenSet() const { return m_owningProjectIdHasBeenSet; }
270 template <typename OwningProjectIdT = Aws::String>
271 void SetOwningProjectId(OwningProjectIdT&& value) {
272 m_owningProjectIdHasBeenSet = true;
273 m_owningProjectId = std::forward<OwningProjectIdT>(value);
274 }
275 template <typename OwningProjectIdT = Aws::String>
276 AssetItem& WithOwningProjectId(OwningProjectIdT&& value) {
277 SetOwningProjectId(std::forward<OwningProjectIdT>(value));
278 return *this;
279 }
281
283
286 inline const AssetItemAdditionalAttributes& GetAdditionalAttributes() const { return m_additionalAttributes; }
287 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
288 template <typename AdditionalAttributesT = AssetItemAdditionalAttributes>
289 void SetAdditionalAttributes(AdditionalAttributesT&& value) {
290 m_additionalAttributesHasBeenSet = true;
291 m_additionalAttributes = std::forward<AdditionalAttributesT>(value);
292 }
293 template <typename AdditionalAttributesT = AssetItemAdditionalAttributes>
294 AssetItem& WithAdditionalAttributes(AdditionalAttributesT&& value) {
295 SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::Vector<Aws::String>& GetGovernedGlossaryTerms() const { return m_governedGlossaryTerms; }
305 inline bool GovernedGlossaryTermsHasBeenSet() const { return m_governedGlossaryTermsHasBeenSet; }
306 template <typename GovernedGlossaryTermsT = Aws::Vector<Aws::String>>
307 void SetGovernedGlossaryTerms(GovernedGlossaryTermsT&& value) {
308 m_governedGlossaryTermsHasBeenSet = true;
309 m_governedGlossaryTerms = std::forward<GovernedGlossaryTermsT>(value);
310 }
311 template <typename GovernedGlossaryTermsT = Aws::Vector<Aws::String>>
312 AssetItem& WithGovernedGlossaryTerms(GovernedGlossaryTermsT&& value) {
313 SetGovernedGlossaryTerms(std::forward<GovernedGlossaryTermsT>(value));
314 return *this;
315 }
316 template <typename GovernedGlossaryTermsT = Aws::String>
317 AssetItem& AddGovernedGlossaryTerms(GovernedGlossaryTermsT&& value) {
318 m_governedGlossaryTermsHasBeenSet = true;
319 m_governedGlossaryTerms.emplace_back(std::forward<GovernedGlossaryTermsT>(value));
320 return *this;
321 }
323 private:
324 Aws::String m_domainId;
325
326 Aws::String m_identifier;
327
328 Aws::String m_name;
329
330 Aws::String m_typeIdentifier;
331
332 Aws::String m_typeRevision;
333
334 Aws::String m_externalIdentifier;
335
336 Aws::String m_description;
337
338 Aws::Utils::DateTime m_createdAt{};
339
340 Aws::String m_createdBy;
341
342 Aws::Utils::DateTime m_firstRevisionCreatedAt{};
343
344 Aws::String m_firstRevisionCreatedBy;
345
346 Aws::Vector<Aws::String> m_glossaryTerms;
347
348 Aws::String m_owningProjectId;
349
350 AssetItemAdditionalAttributes m_additionalAttributes;
351
352 Aws::Vector<Aws::String> m_governedGlossaryTerms;
353 bool m_domainIdHasBeenSet = false;
354 bool m_identifierHasBeenSet = false;
355 bool m_nameHasBeenSet = false;
356 bool m_typeIdentifierHasBeenSet = false;
357 bool m_typeRevisionHasBeenSet = false;
358 bool m_externalIdentifierHasBeenSet = false;
359 bool m_descriptionHasBeenSet = false;
360 bool m_createdAtHasBeenSet = false;
361 bool m_createdByHasBeenSet = false;
362 bool m_firstRevisionCreatedAtHasBeenSet = false;
363 bool m_firstRevisionCreatedByHasBeenSet = false;
364 bool m_glossaryTermsHasBeenSet = false;
365 bool m_owningProjectIdHasBeenSet = false;
366 bool m_additionalAttributesHasBeenSet = false;
367 bool m_governedGlossaryTermsHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace DataZone
372} // namespace Aws
AssetItem & AddGlossaryTerms(GlossaryTermsT &&value)
Definition AssetItem.h:256
const Aws::String & GetExternalIdentifier() const
Definition AssetItem.h:133
bool AdditionalAttributesHasBeenSet() const
Definition AssetItem.h:287
AWS_DATAZONE_API AssetItem(Aws::Utils::Json::JsonView jsonValue)
bool FirstRevisionCreatedByHasBeenSet() const
Definition AssetItem.h:226
bool GovernedGlossaryTermsHasBeenSet() const
Definition AssetItem.h:305
bool ExternalIdentifierHasBeenSet() const
Definition AssetItem.h:134
void SetGlossaryTerms(GlossaryTermsT &&value)
Definition AssetItem.h:246
AssetItem & WithDomainId(DomainIdT &&value)
Definition AssetItem.h:50
void SetDomainId(DomainIdT &&value)
Definition AssetItem.h:45
void SetName(NameT &&value)
Definition AssetItem.h:81
const Aws::String & GetTypeIdentifier() const
Definition AssetItem.h:97
void SetTypeRevision(TypeRevisionT &&value)
Definition AssetItem.h:118
AssetItem & WithOwningProjectId(OwningProjectIdT &&value)
Definition AssetItem.h:276
const Aws::String & GetOwningProjectId() const
Definition AssetItem.h:268
const AssetItemAdditionalAttributes & GetAdditionalAttributes() const
Definition AssetItem.h:286
const Aws::String & GetDescription() const
Definition AssetItem.h:151
bool FirstRevisionCreatedAtHasBeenSet() const
Definition AssetItem.h:207
void SetCreatedAt(CreatedAtT &&value)
Definition AssetItem.h:172
bool OwningProjectIdHasBeenSet() const
Definition AssetItem.h:269
bool TypeIdentifierHasBeenSet() const
Definition AssetItem.h:98
const Aws::String & GetCreatedBy() const
Definition AssetItem.h:187
AssetItem & WithGovernedGlossaryTerms(GovernedGlossaryTermsT &&value)
Definition AssetItem.h:312
AssetItem & WithCreatedBy(CreatedByT &&value)
Definition AssetItem.h:195
void SetIdentifier(IdentifierT &&value)
Definition AssetItem.h:63
AssetItem & WithDescription(DescriptionT &&value)
Definition AssetItem.h:159
const Aws::String & GetTypeRevision() const
Definition AssetItem.h:115
AssetItem & WithTypeIdentifier(TypeIdentifierT &&value)
Definition AssetItem.h:105
const Aws::Utils::DateTime & GetFirstRevisionCreatedAt() const
Definition AssetItem.h:206
AssetItem & WithAdditionalAttributes(AdditionalAttributesT &&value)
Definition AssetItem.h:294
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AssetItem.h:169
void SetExternalIdentifier(ExternalIdentifierT &&value)
Definition AssetItem.h:136
AssetItem & WithFirstRevisionCreatedBy(FirstRevisionCreatedByT &&value)
Definition AssetItem.h:233
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
Definition AssetItem.h:243
AssetItem & WithExternalIdentifier(ExternalIdentifierT &&value)
Definition AssetItem.h:141
AssetItem & WithCreatedAt(CreatedAtT &&value)
Definition AssetItem.h:177
void SetAdditionalAttributes(AdditionalAttributesT &&value)
Definition AssetItem.h:289
void SetDescription(DescriptionT &&value)
Definition AssetItem.h:154
void SetTypeIdentifier(TypeIdentifierT &&value)
Definition AssetItem.h:100
AssetItem & WithFirstRevisionCreatedAt(FirstRevisionCreatedAtT &&value)
Definition AssetItem.h:214
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedBy(CreatedByT &&value)
Definition AssetItem.h:190
const Aws::String & GetFirstRevisionCreatedBy() const
Definition AssetItem.h:225
void SetOwningProjectId(OwningProjectIdT &&value)
Definition AssetItem.h:271
AssetItem & WithGlossaryTerms(GlossaryTermsT &&value)
Definition AssetItem.h:251
AWS_DATAZONE_API AssetItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API AssetItem()=default
const Aws::Vector< Aws::String > & GetGovernedGlossaryTerms() const
Definition AssetItem.h:304
AssetItem & AddGovernedGlossaryTerms(GovernedGlossaryTermsT &&value)
Definition AssetItem.h:317
const Aws::String & GetName() const
Definition AssetItem.h:78
void SetFirstRevisionCreatedAt(FirstRevisionCreatedAtT &&value)
Definition AssetItem.h:209
const Aws::String & GetIdentifier() const
Definition AssetItem.h:60
const Aws::String & GetDomainId() const
Definition AssetItem.h:42
void SetFirstRevisionCreatedBy(FirstRevisionCreatedByT &&value)
Definition AssetItem.h:228
AssetItem & WithName(NameT &&value)
Definition AssetItem.h:86
AssetItem & WithTypeRevision(TypeRevisionT &&value)
Definition AssetItem.h:123
AssetItem & WithIdentifier(IdentifierT &&value)
Definition AssetItem.h:68
void SetGovernedGlossaryTerms(GovernedGlossaryTermsT &&value)
Definition AssetItem.h:307
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue