AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/DomainStatus.h>
13#include <aws/datazone/model/DomainVersion.h>
14#include <aws/datazone/model/SingleSignOn.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 GetDomainResult() = 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 GetDomainResult& WithId(IdT&& value) {
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRootDomainUnitId() const { return m_rootDomainUnitId; }
57 template <typename RootDomainUnitIdT = Aws::String>
58 void SetRootDomainUnitId(RootDomainUnitIdT&& value) {
59 m_rootDomainUnitIdHasBeenSet = true;
60 m_rootDomainUnitId = std::forward<RootDomainUnitIdT>(value);
61 }
62 template <typename RootDomainUnitIdT = Aws::String>
63 GetDomainResult& WithRootDomainUnitId(RootDomainUnitIdT&& value) {
64 SetRootDomainUnitId(std::forward<RootDomainUnitIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
80 GetDomainResult& WithName(NameT&& value) {
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
97 GetDomainResult& WithDescription(DescriptionT&& value) {
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
107 inline const SingleSignOn& GetSingleSignOn() const { return m_singleSignOn; }
108 template <typename SingleSignOnT = SingleSignOn>
109 void SetSingleSignOn(SingleSignOnT&& value) {
110 m_singleSignOnHasBeenSet = true;
111 m_singleSignOn = std::forward<SingleSignOnT>(value);
112 }
113 template <typename SingleSignOnT = SingleSignOn>
114 GetDomainResult& WithSingleSignOn(SingleSignOnT&& value) {
115 SetSingleSignOn(std::forward<SingleSignOnT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetDomainExecutionRole() const { return m_domainExecutionRole; }
126 template <typename DomainExecutionRoleT = Aws::String>
127 void SetDomainExecutionRole(DomainExecutionRoleT&& value) {
128 m_domainExecutionRoleHasBeenSet = true;
129 m_domainExecutionRole = std::forward<DomainExecutionRoleT>(value);
130 }
131 template <typename DomainExecutionRoleT = Aws::String>
132 GetDomainResult& WithDomainExecutionRole(DomainExecutionRoleT&& value) {
133 SetDomainExecutionRole(std::forward<DomainExecutionRoleT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetArn() const { return m_arn; }
143 template <typename ArnT = Aws::String>
144 void SetArn(ArnT&& value) {
145 m_arnHasBeenSet = true;
146 m_arn = std::forward<ArnT>(value);
147 }
148 template <typename ArnT = Aws::String>
149 GetDomainResult& WithArn(ArnT&& value) {
150 SetArn(std::forward<ArnT>(value));
151 return *this;
152 }
154
156
161 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
162 template <typename KmsKeyIdentifierT = Aws::String>
163 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
164 m_kmsKeyIdentifierHasBeenSet = true;
165 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
166 }
167 template <typename KmsKeyIdentifierT = Aws::String>
168 GetDomainResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
169 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
170 return *this;
171 }
173
175
178 inline DomainStatus GetStatus() const { return m_status; }
179 inline void SetStatus(DomainStatus value) {
180 m_statusHasBeenSet = true;
181 m_status = value;
182 }
184 SetStatus(value);
185 return *this;
186 }
188
190
193 inline const Aws::String& GetPortalUrl() const { return m_portalUrl; }
194 template <typename PortalUrlT = Aws::String>
195 void SetPortalUrl(PortalUrlT&& value) {
196 m_portalUrlHasBeenSet = true;
197 m_portalUrl = std::forward<PortalUrlT>(value);
198 }
199 template <typename PortalUrlT = Aws::String>
200 GetDomainResult& WithPortalUrl(PortalUrlT&& value) {
201 SetPortalUrl(std::forward<PortalUrlT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
211 template <typename CreatedAtT = Aws::Utils::DateTime>
212 void SetCreatedAt(CreatedAtT&& value) {
213 m_createdAtHasBeenSet = true;
214 m_createdAt = std::forward<CreatedAtT>(value);
215 }
216 template <typename CreatedAtT = Aws::Utils::DateTime>
217 GetDomainResult& WithCreatedAt(CreatedAtT&& value) {
218 SetCreatedAt(std::forward<CreatedAtT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
228 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
229 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
230 m_lastUpdatedAtHasBeenSet = true;
231 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
232 }
233 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
234 GetDomainResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
235 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
245 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
246 void SetTags(TagsT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags = std::forward<TagsT>(value);
249 }
250 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
251 GetDomainResult& WithTags(TagsT&& value) {
252 SetTags(std::forward<TagsT>(value));
253 return *this;
254 }
255 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
256 GetDomainResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
257 m_tagsHasBeenSet = true;
258 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
259 return *this;
260 }
262
264
267 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
268 inline void SetDomainVersion(DomainVersion value) {
269 m_domainVersionHasBeenSet = true;
270 m_domainVersion = value;
271 }
273 SetDomainVersion(value);
274 return *this;
275 }
277
279
282 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
283 template <typename ServiceRoleT = Aws::String>
284 void SetServiceRole(ServiceRoleT&& value) {
285 m_serviceRoleHasBeenSet = true;
286 m_serviceRole = std::forward<ServiceRoleT>(value);
287 }
288 template <typename ServiceRoleT = Aws::String>
289 GetDomainResult& WithServiceRole(ServiceRoleT&& value) {
290 SetServiceRole(std::forward<ServiceRoleT>(value));
291 return *this;
292 }
294
296
297 inline const Aws::String& GetRequestId() const { return m_requestId; }
298 template <typename RequestIdT = Aws::String>
299 void SetRequestId(RequestIdT&& value) {
300 m_requestIdHasBeenSet = true;
301 m_requestId = std::forward<RequestIdT>(value);
302 }
303 template <typename RequestIdT = Aws::String>
304 GetDomainResult& WithRequestId(RequestIdT&& value) {
305 SetRequestId(std::forward<RequestIdT>(value));
306 return *this;
307 }
309 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
310
311 private:
312 Aws::String m_id;
313
314 Aws::String m_rootDomainUnitId;
315
316 Aws::String m_name;
317
318 Aws::String m_description;
319
320 SingleSignOn m_singleSignOn;
321
322 Aws::String m_domainExecutionRole;
323
324 Aws::String m_arn;
325
326 Aws::String m_kmsKeyIdentifier;
327
329
330 Aws::String m_portalUrl;
331
332 Aws::Utils::DateTime m_createdAt{};
333
334 Aws::Utils::DateTime m_lastUpdatedAt{};
335
337
338 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
339
340 Aws::String m_serviceRole;
341
342 Aws::String m_requestId;
343 Aws::Http::HttpResponseCode m_HttpResponseCode;
344 bool m_idHasBeenSet = false;
345 bool m_rootDomainUnitIdHasBeenSet = false;
346 bool m_nameHasBeenSet = false;
347 bool m_descriptionHasBeenSet = false;
348 bool m_singleSignOnHasBeenSet = false;
349 bool m_domainExecutionRoleHasBeenSet = false;
350 bool m_arnHasBeenSet = false;
351 bool m_kmsKeyIdentifierHasBeenSet = false;
352 bool m_statusHasBeenSet = false;
353 bool m_portalUrlHasBeenSet = false;
354 bool m_createdAtHasBeenSet = false;
355 bool m_lastUpdatedAtHasBeenSet = false;
356 bool m_tagsHasBeenSet = false;
357 bool m_domainVersionHasBeenSet = false;
358 bool m_serviceRoleHasBeenSet = false;
359 bool m_requestIdHasBeenSet = false;
360};
361
362} // namespace Model
363} // namespace DataZone
364} // 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 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)
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::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)
void SetSingleSignOn(SingleSignOnT &&value)
void SetPortalUrl(PortalUrlT &&value)
GetDomainResult & WithDescription(DescriptionT &&value)
const SingleSignOn & GetSingleSignOn() const
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 & 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
Aws::Utils::Json::JsonValue JsonValue