AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
GetDomainResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datazone/DataZone_EXPORTS.h>
13#include <aws/datazone/model/DeleteProgress.h>
14#include <aws/datazone/model/DomainStatus.h>
15#include <aws/datazone/model/DomainVersion.h>
16#include <aws/datazone/model/FailureReason.h>
17#include <aws/datazone/model/SingleSignOn.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace DataZone {
31namespace Model {
33 public:
34 AWS_DATAZONE_API GetDomainResult() = default;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 GetDomainResult& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRootDomainUnitId() const { return m_rootDomainUnitId; }
60 template <typename RootDomainUnitIdT = Aws::String>
61 void SetRootDomainUnitId(RootDomainUnitIdT&& value) {
62 m_rootDomainUnitIdHasBeenSet = true;
63 m_rootDomainUnitId = std::forward<RootDomainUnitIdT>(value);
64 }
65 template <typename RootDomainUnitIdT = Aws::String>
66 GetDomainResult& WithRootDomainUnitId(RootDomainUnitIdT&& value) {
67 SetRootDomainUnitId(std::forward<RootDomainUnitIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 GetDomainResult& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 GetDomainResult& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
110 inline const SingleSignOn& GetSingleSignOn() const { return m_singleSignOn; }
111 template <typename SingleSignOnT = SingleSignOn>
112 void SetSingleSignOn(SingleSignOnT&& value) {
113 m_singleSignOnHasBeenSet = true;
114 m_singleSignOn = std::forward<SingleSignOnT>(value);
115 }
116 template <typename SingleSignOnT = SingleSignOn>
117 GetDomainResult& WithSingleSignOn(SingleSignOnT&& value) {
118 SetSingleSignOn(std::forward<SingleSignOnT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetDomainExecutionRole() const { return m_domainExecutionRole; }
129 template <typename DomainExecutionRoleT = Aws::String>
130 void SetDomainExecutionRole(DomainExecutionRoleT&& value) {
131 m_domainExecutionRoleHasBeenSet = true;
132 m_domainExecutionRole = std::forward<DomainExecutionRoleT>(value);
133 }
134 template <typename DomainExecutionRoleT = Aws::String>
135 GetDomainResult& WithDomainExecutionRole(DomainExecutionRoleT&& value) {
136 SetDomainExecutionRole(std::forward<DomainExecutionRoleT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetArn() const { return m_arn; }
146 template <typename ArnT = Aws::String>
147 void SetArn(ArnT&& value) {
148 m_arnHasBeenSet = true;
149 m_arn = std::forward<ArnT>(value);
150 }
151 template <typename ArnT = Aws::String>
152 GetDomainResult& WithArn(ArnT&& value) {
153 SetArn(std::forward<ArnT>(value));
154 return *this;
155 }
157
159
164 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
165 template <typename KmsKeyIdentifierT = Aws::String>
166 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
167 m_kmsKeyIdentifierHasBeenSet = true;
168 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
169 }
170 template <typename KmsKeyIdentifierT = Aws::String>
171 GetDomainResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
172 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
173 return *this;
174 }
176
178
181 inline DomainStatus GetStatus() const { return m_status; }
182 inline void SetStatus(DomainStatus value) {
183 m_statusHasBeenSet = true;
184 m_status = value;
185 }
187 SetStatus(value);
188 return *this;
189 }
191
193
196 inline const Aws::String& GetPortalUrl() const { return m_portalUrl; }
197 template <typename PortalUrlT = Aws::String>
198 void SetPortalUrl(PortalUrlT&& value) {
199 m_portalUrlHasBeenSet = true;
200 m_portalUrl = std::forward<PortalUrlT>(value);
201 }
202 template <typename PortalUrlT = Aws::String>
203 GetDomainResult& WithPortalUrl(PortalUrlT&& value) {
204 SetPortalUrl(std::forward<PortalUrlT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
214 template <typename CreatedAtT = Aws::Utils::DateTime>
215 void SetCreatedAt(CreatedAtT&& value) {
216 m_createdAtHasBeenSet = true;
217 m_createdAt = std::forward<CreatedAtT>(value);
218 }
219 template <typename CreatedAtT = Aws::Utils::DateTime>
220 GetDomainResult& WithCreatedAt(CreatedAtT&& value) {
221 SetCreatedAt(std::forward<CreatedAtT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
231 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
232 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
233 m_lastUpdatedAtHasBeenSet = true;
234 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
235 }
236 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
237 GetDomainResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
238 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
248 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
249 void SetTags(TagsT&& value) {
250 m_tagsHasBeenSet = true;
251 m_tags = std::forward<TagsT>(value);
252 }
253 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
254 GetDomainResult& WithTags(TagsT&& value) {
255 SetTags(std::forward<TagsT>(value));
256 return *this;
257 }
258 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
259 GetDomainResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
260 m_tagsHasBeenSet = true;
261 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
262 return *this;
263 }
265
267
270 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
271 inline void SetDomainVersion(DomainVersion value) {
272 m_domainVersionHasBeenSet = true;
273 m_domainVersion = value;
274 }
276 SetDomainVersion(value);
277 return *this;
278 }
280
282
285 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
286 template <typename ServiceRoleT = Aws::String>
287 void SetServiceRole(ServiceRoleT&& value) {
288 m_serviceRoleHasBeenSet = true;
289 m_serviceRole = std::forward<ServiceRoleT>(value);
290 }
291 template <typename ServiceRoleT = Aws::String>
292 GetDomainResult& WithServiceRole(ServiceRoleT&& value) {
293 SetServiceRole(std::forward<ServiceRoleT>(value));
294 return *this;
295 }
297
299
303 inline const Aws::Vector<FailureReason>& GetFailureReasons() const { return m_failureReasons; }
304 template <typename FailureReasonsT = Aws::Vector<FailureReason>>
305 void SetFailureReasons(FailureReasonsT&& value) {
306 m_failureReasonsHasBeenSet = true;
307 m_failureReasons = std::forward<FailureReasonsT>(value);
308 }
309 template <typename FailureReasonsT = Aws::Vector<FailureReason>>
310 GetDomainResult& WithFailureReasons(FailureReasonsT&& value) {
311 SetFailureReasons(std::forward<FailureReasonsT>(value));
312 return *this;
313 }
314 template <typename FailureReasonsT = FailureReason>
315 GetDomainResult& AddFailureReasons(FailureReasonsT&& value) {
316 m_failureReasonsHasBeenSet = true;
317 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
318 return *this;
319 }
321
323
327 inline const DeleteProgress& GetDeleteProgress() const { return m_deleteProgress; }
328 template <typename DeleteProgressT = DeleteProgress>
329 void SetDeleteProgress(DeleteProgressT&& value) {
330 m_deleteProgressHasBeenSet = true;
331 m_deleteProgress = std::forward<DeleteProgressT>(value);
332 }
333 template <typename DeleteProgressT = DeleteProgress>
334 GetDomainResult& WithDeleteProgress(DeleteProgressT&& value) {
335 SetDeleteProgress(std::forward<DeleteProgressT>(value));
336 return *this;
337 }
339
341
342 inline const Aws::String& GetRequestId() const { return m_requestId; }
343 template <typename RequestIdT = Aws::String>
344 void SetRequestId(RequestIdT&& value) {
345 m_requestIdHasBeenSet = true;
346 m_requestId = std::forward<RequestIdT>(value);
347 }
348 template <typename RequestIdT = Aws::String>
349 GetDomainResult& WithRequestId(RequestIdT&& value) {
350 SetRequestId(std::forward<RequestIdT>(value));
351 return *this;
352 }
354 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
355
356 private:
357 Aws::String m_id;
358
359 Aws::String m_rootDomainUnitId;
360
361 Aws::String m_name;
362
363 Aws::String m_description;
364
365 SingleSignOn m_singleSignOn;
366
367 Aws::String m_domainExecutionRole;
368
369 Aws::String m_arn;
370
371 Aws::String m_kmsKeyIdentifier;
372
374
375 Aws::String m_portalUrl;
376
377 Aws::Utils::DateTime m_createdAt{};
378
379 Aws::Utils::DateTime m_lastUpdatedAt{};
380
382
383 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
384
385 Aws::String m_serviceRole;
386
387 Aws::Vector<FailureReason> m_failureReasons;
388
389 DeleteProgress m_deleteProgress;
390
391 Aws::String m_requestId;
392 Aws::Http::HttpResponseCode m_HttpResponseCode;
393 bool m_idHasBeenSet = false;
394 bool m_rootDomainUnitIdHasBeenSet = false;
395 bool m_nameHasBeenSet = false;
396 bool m_descriptionHasBeenSet = false;
397 bool m_singleSignOnHasBeenSet = false;
398 bool m_domainExecutionRoleHasBeenSet = false;
399 bool m_arnHasBeenSet = false;
400 bool m_kmsKeyIdentifierHasBeenSet = false;
401 bool m_statusHasBeenSet = false;
402 bool m_portalUrlHasBeenSet = false;
403 bool m_createdAtHasBeenSet = false;
404 bool m_lastUpdatedAtHasBeenSet = false;
405 bool m_tagsHasBeenSet = false;
406 bool m_domainVersionHasBeenSet = false;
407 bool m_serviceRoleHasBeenSet = false;
408 bool m_failureReasonsHasBeenSet = false;
409 bool m_deleteProgressHasBeenSet = false;
410 bool m_requestIdHasBeenSet = false;
411};
412
413} // namespace Model
414} // namespace DataZone
415} // namespace Aws
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DATAZONE_API GetDomainResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFailureReasons(FailureReasonsT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
AWS_DATAZONE_API GetDomainResult()=default
void SetRequestId(RequestIdT &&value)
const Aws::String & GetDomainExecutionRole() const
void SetCreatedAt(CreatedAtT &&value)
GetDomainResult & WithTags(TagsT &&value)
void SetDeleteProgress(DeleteProgressT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDomainResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetDomainResult & WithPortalUrl(PortalUrlT &&value)
GetDomainResult & WithRequestId(RequestIdT &&value)
GetDomainResult & WithDomainVersion(DomainVersion value)
void SetRootDomainUnitId(RootDomainUnitIdT &&value)
GetDomainResult & WithName(NameT &&value)
void SetDomainExecutionRole(DomainExecutionRoleT &&value)
void SetServiceRole(ServiceRoleT &&value)
const Aws::Vector< FailureReason > & GetFailureReasons() const
const Aws::String & GetName() const
GetDomainResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
const Aws::String & GetRootDomainUnitId() const
const Aws::String & GetId() const
void SetDomainVersion(DomainVersion value)
GetDomainResult & WithCreatedAt(CreatedAtT &&value)
const DeleteProgress & GetDeleteProgress() const
GetDomainResult & WithDeleteProgress(DeleteProgressT &&value)
void SetSingleSignOn(SingleSignOnT &&value)
void SetPortalUrl(PortalUrlT &&value)
GetDomainResult & WithDescription(DescriptionT &&value)
const SingleSignOn & GetSingleSignOn() const
GetDomainResult & AddFailureReasons(FailureReasonsT &&value)
GetDomainResult & WithSingleSignOn(SingleSignOnT &&value)
GetDomainResult & WithStatus(DomainStatus value)
GetDomainResult & WithRootDomainUnitId(RootDomainUnitIdT &&value)
const Aws::String & GetDescription() const
GetDomainResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
GetDomainResult & WithFailureReasons(FailureReasonsT &&value)
GetDomainResult & WithDomainExecutionRole(DomainExecutionRoleT &&value)
const Aws::String & GetArn() const
const Aws::String & GetRequestId() const
GetDomainResult & WithId(IdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetServiceRole() const
GetDomainResult & WithArn(ArnT &&value)
AWS_DATAZONE_API GetDomainResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetKmsKeyIdentifier() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::String & GetPortalUrl() const
GetDomainResult & WithServiceRole(ServiceRoleT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue