AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetAssetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/AssetListingDetails.h>
13#include <aws/datazone/model/FormOutput.h>
14#include <aws/datazone/model/TimeSeriesDataPointSummaryFormOutput.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataZone {
28namespace Model {
30 public:
31 AWS_DATAZONE_API GetAssetResult() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
46 GetAssetResult& WithId(IdT&& value) {
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
63 GetAssetResult& WithName(NameT&& value) {
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetTypeIdentifier() const { return m_typeIdentifier; }
74 template <typename TypeIdentifierT = Aws::String>
75 void SetTypeIdentifier(TypeIdentifierT&& value) {
76 m_typeIdentifierHasBeenSet = true;
77 m_typeIdentifier = std::forward<TypeIdentifierT>(value);
78 }
79 template <typename TypeIdentifierT = Aws::String>
80 GetAssetResult& WithTypeIdentifier(TypeIdentifierT&& value) {
81 SetTypeIdentifier(std::forward<TypeIdentifierT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetTypeRevision() const { return m_typeRevision; }
91 template <typename TypeRevisionT = Aws::String>
92 void SetTypeRevision(TypeRevisionT&& value) {
93 m_typeRevisionHasBeenSet = true;
94 m_typeRevision = std::forward<TypeRevisionT>(value);
95 }
96 template <typename TypeRevisionT = Aws::String>
97 GetAssetResult& WithTypeRevision(TypeRevisionT&& value) {
98 SetTypeRevision(std::forward<TypeRevisionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetExternalIdentifier() const { return m_externalIdentifier; }
108 template <typename ExternalIdentifierT = Aws::String>
109 void SetExternalIdentifier(ExternalIdentifierT&& value) {
110 m_externalIdentifierHasBeenSet = true;
111 m_externalIdentifier = std::forward<ExternalIdentifierT>(value);
112 }
113 template <typename ExternalIdentifierT = Aws::String>
114 GetAssetResult& WithExternalIdentifier(ExternalIdentifierT&& value) {
115 SetExternalIdentifier(std::forward<ExternalIdentifierT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetRevision() const { return m_revision; }
125 template <typename RevisionT = Aws::String>
126 void SetRevision(RevisionT&& value) {
127 m_revisionHasBeenSet = true;
128 m_revision = std::forward<RevisionT>(value);
129 }
130 template <typename RevisionT = Aws::String>
131 GetAssetResult& WithRevision(RevisionT&& value) {
132 SetRevision(std::forward<RevisionT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetDescription() const { return m_description; }
142 template <typename DescriptionT = Aws::String>
143 void SetDescription(DescriptionT&& value) {
144 m_descriptionHasBeenSet = true;
145 m_description = std::forward<DescriptionT>(value);
146 }
147 template <typename DescriptionT = Aws::String>
148 GetAssetResult& WithDescription(DescriptionT&& value) {
149 SetDescription(std::forward<DescriptionT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
159 template <typename CreatedAtT = Aws::Utils::DateTime>
160 void SetCreatedAt(CreatedAtT&& value) {
161 m_createdAtHasBeenSet = true;
162 m_createdAt = std::forward<CreatedAtT>(value);
163 }
164 template <typename CreatedAtT = Aws::Utils::DateTime>
165 GetAssetResult& WithCreatedAt(CreatedAtT&& value) {
166 SetCreatedAt(std::forward<CreatedAtT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
176 template <typename CreatedByT = Aws::String>
177 void SetCreatedBy(CreatedByT&& value) {
178 m_createdByHasBeenSet = true;
179 m_createdBy = std::forward<CreatedByT>(value);
180 }
181 template <typename CreatedByT = Aws::String>
182 GetAssetResult& WithCreatedBy(CreatedByT&& value) {
183 SetCreatedBy(std::forward<CreatedByT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::Utils::DateTime& GetFirstRevisionCreatedAt() const { return m_firstRevisionCreatedAt; }
193 template <typename FirstRevisionCreatedAtT = Aws::Utils::DateTime>
194 void SetFirstRevisionCreatedAt(FirstRevisionCreatedAtT&& value) {
195 m_firstRevisionCreatedAtHasBeenSet = true;
196 m_firstRevisionCreatedAt = std::forward<FirstRevisionCreatedAtT>(value);
197 }
198 template <typename FirstRevisionCreatedAtT = Aws::Utils::DateTime>
199 GetAssetResult& WithFirstRevisionCreatedAt(FirstRevisionCreatedAtT&& value) {
200 SetFirstRevisionCreatedAt(std::forward<FirstRevisionCreatedAtT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetFirstRevisionCreatedBy() const { return m_firstRevisionCreatedBy; }
210 template <typename FirstRevisionCreatedByT = Aws::String>
211 void SetFirstRevisionCreatedBy(FirstRevisionCreatedByT&& value) {
212 m_firstRevisionCreatedByHasBeenSet = true;
213 m_firstRevisionCreatedBy = std::forward<FirstRevisionCreatedByT>(value);
214 }
215 template <typename FirstRevisionCreatedByT = Aws::String>
216 GetAssetResult& WithFirstRevisionCreatedBy(FirstRevisionCreatedByT&& value) {
217 SetFirstRevisionCreatedBy(std::forward<FirstRevisionCreatedByT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
227 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
228 void SetGlossaryTerms(GlossaryTermsT&& value) {
229 m_glossaryTermsHasBeenSet = true;
230 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
231 }
232 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
233 GetAssetResult& WithGlossaryTerms(GlossaryTermsT&& value) {
234 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
235 return *this;
236 }
237 template <typename GlossaryTermsT = Aws::String>
238 GetAssetResult& AddGlossaryTerms(GlossaryTermsT&& value) {
239 m_glossaryTermsHasBeenSet = true;
240 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Vector<Aws::String>& GetGovernedGlossaryTerms() const { return m_governedGlossaryTerms; }
250 template <typename GovernedGlossaryTermsT = Aws::Vector<Aws::String>>
251 void SetGovernedGlossaryTerms(GovernedGlossaryTermsT&& value) {
252 m_governedGlossaryTermsHasBeenSet = true;
253 m_governedGlossaryTerms = std::forward<GovernedGlossaryTermsT>(value);
254 }
255 template <typename GovernedGlossaryTermsT = Aws::Vector<Aws::String>>
256 GetAssetResult& WithGovernedGlossaryTerms(GovernedGlossaryTermsT&& value) {
257 SetGovernedGlossaryTerms(std::forward<GovernedGlossaryTermsT>(value));
258 return *this;
259 }
260 template <typename GovernedGlossaryTermsT = Aws::String>
261 GetAssetResult& AddGovernedGlossaryTerms(GovernedGlossaryTermsT&& value) {
262 m_governedGlossaryTermsHasBeenSet = true;
263 m_governedGlossaryTerms.emplace_back(std::forward<GovernedGlossaryTermsT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
273 template <typename OwningProjectIdT = Aws::String>
274 void SetOwningProjectId(OwningProjectIdT&& value) {
275 m_owningProjectIdHasBeenSet = true;
276 m_owningProjectId = std::forward<OwningProjectIdT>(value);
277 }
278 template <typename OwningProjectIdT = Aws::String>
279 GetAssetResult& WithOwningProjectId(OwningProjectIdT&& value) {
280 SetOwningProjectId(std::forward<OwningProjectIdT>(value));
281 return *this;
282 }
284
286
289 inline const Aws::String& GetDomainId() const { return m_domainId; }
290 template <typename DomainIdT = Aws::String>
291 void SetDomainId(DomainIdT&& value) {
292 m_domainIdHasBeenSet = true;
293 m_domainId = std::forward<DomainIdT>(value);
294 }
295 template <typename DomainIdT = Aws::String>
296 GetAssetResult& WithDomainId(DomainIdT&& value) {
297 SetDomainId(std::forward<DomainIdT>(value));
298 return *this;
299 }
301
303
306 inline const AssetListingDetails& GetListing() const { return m_listing; }
307 template <typename ListingT = AssetListingDetails>
308 void SetListing(ListingT&& value) {
309 m_listingHasBeenSet = true;
310 m_listing = std::forward<ListingT>(value);
311 }
312 template <typename ListingT = AssetListingDetails>
313 GetAssetResult& WithListing(ListingT&& value) {
314 SetListing(std::forward<ListingT>(value));
315 return *this;
316 }
318
320
323 inline const Aws::Vector<FormOutput>& GetFormsOutput() const { return m_formsOutput; }
324 template <typename FormsOutputT = Aws::Vector<FormOutput>>
325 void SetFormsOutput(FormsOutputT&& value) {
326 m_formsOutputHasBeenSet = true;
327 m_formsOutput = std::forward<FormsOutputT>(value);
328 }
329 template <typename FormsOutputT = Aws::Vector<FormOutput>>
330 GetAssetResult& WithFormsOutput(FormsOutputT&& value) {
331 SetFormsOutput(std::forward<FormsOutputT>(value));
332 return *this;
333 }
334 template <typename FormsOutputT = FormOutput>
335 GetAssetResult& AddFormsOutput(FormsOutputT&& value) {
336 m_formsOutputHasBeenSet = true;
337 m_formsOutput.emplace_back(std::forward<FormsOutputT>(value));
338 return *this;
339 }
341
343
346 inline const Aws::Vector<FormOutput>& GetReadOnlyFormsOutput() const { return m_readOnlyFormsOutput; }
347 template <typename ReadOnlyFormsOutputT = Aws::Vector<FormOutput>>
348 void SetReadOnlyFormsOutput(ReadOnlyFormsOutputT&& value) {
349 m_readOnlyFormsOutputHasBeenSet = true;
350 m_readOnlyFormsOutput = std::forward<ReadOnlyFormsOutputT>(value);
351 }
352 template <typename ReadOnlyFormsOutputT = Aws::Vector<FormOutput>>
353 GetAssetResult& WithReadOnlyFormsOutput(ReadOnlyFormsOutputT&& value) {
354 SetReadOnlyFormsOutput(std::forward<ReadOnlyFormsOutputT>(value));
355 return *this;
356 }
357 template <typename ReadOnlyFormsOutputT = FormOutput>
358 GetAssetResult& AddReadOnlyFormsOutput(ReadOnlyFormsOutputT&& value) {
359 m_readOnlyFormsOutputHasBeenSet = true;
360 m_readOnlyFormsOutput.emplace_back(std::forward<ReadOnlyFormsOutputT>(value));
361 return *this;
362 }
364
366
371 return m_latestTimeSeriesDataPointFormsOutput;
372 }
373 template <typename LatestTimeSeriesDataPointFormsOutputT = Aws::Vector<TimeSeriesDataPointSummaryFormOutput>>
374 void SetLatestTimeSeriesDataPointFormsOutput(LatestTimeSeriesDataPointFormsOutputT&& value) {
375 m_latestTimeSeriesDataPointFormsOutputHasBeenSet = true;
376 m_latestTimeSeriesDataPointFormsOutput = std::forward<LatestTimeSeriesDataPointFormsOutputT>(value);
377 }
378 template <typename LatestTimeSeriesDataPointFormsOutputT = Aws::Vector<TimeSeriesDataPointSummaryFormOutput>>
379 GetAssetResult& WithLatestTimeSeriesDataPointFormsOutput(LatestTimeSeriesDataPointFormsOutputT&& value) {
380 SetLatestTimeSeriesDataPointFormsOutput(std::forward<LatestTimeSeriesDataPointFormsOutputT>(value));
381 return *this;
382 }
383 template <typename LatestTimeSeriesDataPointFormsOutputT = TimeSeriesDataPointSummaryFormOutput>
384 GetAssetResult& AddLatestTimeSeriesDataPointFormsOutput(LatestTimeSeriesDataPointFormsOutputT&& value) {
385 m_latestTimeSeriesDataPointFormsOutputHasBeenSet = true;
386 m_latestTimeSeriesDataPointFormsOutput.emplace_back(std::forward<LatestTimeSeriesDataPointFormsOutputT>(value));
387 return *this;
388 }
390
392
393 inline const Aws::String& GetRequestId() const { return m_requestId; }
394 template <typename RequestIdT = Aws::String>
395 void SetRequestId(RequestIdT&& value) {
396 m_requestIdHasBeenSet = true;
397 m_requestId = std::forward<RequestIdT>(value);
398 }
399 template <typename RequestIdT = Aws::String>
400 GetAssetResult& WithRequestId(RequestIdT&& value) {
401 SetRequestId(std::forward<RequestIdT>(value));
402 return *this;
403 }
405 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
406
407 private:
408 Aws::String m_id;
409
410 Aws::String m_name;
411
412 Aws::String m_typeIdentifier;
413
414 Aws::String m_typeRevision;
415
416 Aws::String m_externalIdentifier;
417
418 Aws::String m_revision;
419
420 Aws::String m_description;
421
422 Aws::Utils::DateTime m_createdAt{};
423
424 Aws::String m_createdBy;
425
426 Aws::Utils::DateTime m_firstRevisionCreatedAt{};
427
428 Aws::String m_firstRevisionCreatedBy;
429
430 Aws::Vector<Aws::String> m_glossaryTerms;
431
432 Aws::Vector<Aws::String> m_governedGlossaryTerms;
433
434 Aws::String m_owningProjectId;
435
436 Aws::String m_domainId;
437
438 AssetListingDetails m_listing;
439
440 Aws::Vector<FormOutput> m_formsOutput;
441
442 Aws::Vector<FormOutput> m_readOnlyFormsOutput;
443
444 Aws::Vector<TimeSeriesDataPointSummaryFormOutput> m_latestTimeSeriesDataPointFormsOutput;
445
446 Aws::String m_requestId;
447 Aws::Http::HttpResponseCode m_HttpResponseCode;
448 bool m_idHasBeenSet = false;
449 bool m_nameHasBeenSet = false;
450 bool m_typeIdentifierHasBeenSet = false;
451 bool m_typeRevisionHasBeenSet = false;
452 bool m_externalIdentifierHasBeenSet = false;
453 bool m_revisionHasBeenSet = false;
454 bool m_descriptionHasBeenSet = false;
455 bool m_createdAtHasBeenSet = false;
456 bool m_createdByHasBeenSet = false;
457 bool m_firstRevisionCreatedAtHasBeenSet = false;
458 bool m_firstRevisionCreatedByHasBeenSet = false;
459 bool m_glossaryTermsHasBeenSet = false;
460 bool m_governedGlossaryTermsHasBeenSet = false;
461 bool m_owningProjectIdHasBeenSet = false;
462 bool m_domainIdHasBeenSet = false;
463 bool m_listingHasBeenSet = false;
464 bool m_formsOutputHasBeenSet = false;
465 bool m_readOnlyFormsOutputHasBeenSet = false;
466 bool m_latestTimeSeriesDataPointFormsOutputHasBeenSet = false;
467 bool m_requestIdHasBeenSet = false;
468};
469
470} // namespace Model
471} // namespace DataZone
472} // namespace Aws
const Aws::String & GetRevision() const
void SetReadOnlyFormsOutput(ReadOnlyFormsOutputT &&value)
GetAssetResult & WithFirstRevisionCreatedAt(FirstRevisionCreatedAtT &&value)
const Aws::String & GetCreatedBy() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetAssetResult & WithId(IdT &&value)
const Aws::String & GetId() const
AWS_DATAZONE_API GetAssetResult()=default
const Aws::Utils::DateTime & GetFirstRevisionCreatedAt() const
GetAssetResult & WithFormsOutput(FormsOutputT &&value)
GetAssetResult & WithListing(ListingT &&value)
const Aws::Vector< TimeSeriesDataPointSummaryFormOutput > & GetLatestTimeSeriesDataPointFormsOutput() const
const Aws::String & GetDescription() const
void SetDomainId(DomainIdT &&value)
void SetOwningProjectId(OwningProjectIdT &&value)
GetAssetResult & WithGovernedGlossaryTerms(GovernedGlossaryTermsT &&value)
void SetGovernedGlossaryTerms(GovernedGlossaryTermsT &&value)
GetAssetResult & WithLatestTimeSeriesDataPointFormsOutput(LatestTimeSeriesDataPointFormsOutputT &&value)
void SetExternalIdentifier(ExternalIdentifierT &&value)
void SetGlossaryTerms(GlossaryTermsT &&value)
void SetFormsOutput(FormsOutputT &&value)
GetAssetResult & WithTypeRevision(TypeRevisionT &&value)
GetAssetResult & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetFirstRevisionCreatedBy() const
void SetCreatedAt(CreatedAtT &&value)
GetAssetResult & WithGlossaryTerms(GlossaryTermsT &&value)
GetAssetResult & AddReadOnlyFormsOutput(ReadOnlyFormsOutputT &&value)
void SetFirstRevisionCreatedBy(FirstRevisionCreatedByT &&value)
GetAssetResult & WithFirstRevisionCreatedBy(FirstRevisionCreatedByT &&value)
const Aws::String & GetTypeIdentifier() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetExternalIdentifier() const
GetAssetResult & AddGovernedGlossaryTerms(GovernedGlossaryTermsT &&value)
AWS_DATAZONE_API GetAssetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetOwningProjectId() const
GetAssetResult & WithTypeIdentifier(TypeIdentifierT &&value)
GetAssetResult & WithName(NameT &&value)
const Aws::String & GetDomainId() const
GetAssetResult & WithDomainId(DomainIdT &&value)
GetAssetResult & WithRevision(RevisionT &&value)
GetAssetResult & WithOwningProjectId(OwningProjectIdT &&value)
AWS_DATAZONE_API GetAssetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTypeRevision(TypeRevisionT &&value)
const Aws::String & GetTypeRevision() const
GetAssetResult & AddGlossaryTerms(GlossaryTermsT &&value)
GetAssetResult & WithExternalIdentifier(ExternalIdentifierT &&value)
GetAssetResult & AddFormsOutput(FormsOutputT &&value)
const Aws::Vector< FormOutput > & GetFormsOutput() const
GetAssetResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< FormOutput > & GetReadOnlyFormsOutput() const
const AssetListingDetails & GetListing() const
const Aws::Vector< Aws::String > & GetGovernedGlossaryTerms() const
void SetFirstRevisionCreatedAt(FirstRevisionCreatedAtT &&value)
void SetCreatedBy(CreatedByT &&value)
const Aws::String & GetRequestId() const
void SetDescription(DescriptionT &&value)
GetAssetResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
const Aws::String & GetName() const
void SetRevision(RevisionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetAssetResult & AddLatestTimeSeriesDataPointFormsOutput(LatestTimeSeriesDataPointFormsOutputT &&value)
GetAssetResult & WithReadOnlyFormsOutput(ReadOnlyFormsOutputT &&value)
void SetLatestTimeSeriesDataPointFormsOutput(LatestTimeSeriesDataPointFormsOutputT &&value)
void SetTypeIdentifier(TypeIdentifierT &&value)
GetAssetResult & WithDescription(DescriptionT &&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