AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetDomainResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/DomainStatus.h>
12#include <aws/datazone/model/DomainVersion.h>
13#include <aws/datazone/model/SingleSignOn.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataZone {
27namespace Model {
29 public:
30 AWS_DATAZONE_API GetDomainResult() = default;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
45 GetDomainResult& WithId(IdT&& value) {
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetRootDomainUnitId() const { return m_rootDomainUnitId; }
56 template <typename RootDomainUnitIdT = Aws::String>
57 void SetRootDomainUnitId(RootDomainUnitIdT&& value) {
58 m_rootDomainUnitIdHasBeenSet = true;
59 m_rootDomainUnitId = std::forward<RootDomainUnitIdT>(value);
60 }
61 template <typename RootDomainUnitIdT = Aws::String>
62 GetDomainResult& WithRootDomainUnitId(RootDomainUnitIdT&& value) {
63 SetRootDomainUnitId(std::forward<RootDomainUnitIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
79 GetDomainResult& WithName(NameT&& value) {
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 GetDomainResult& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
106 inline const SingleSignOn& GetSingleSignOn() const { return m_singleSignOn; }
107 template <typename SingleSignOnT = SingleSignOn>
108 void SetSingleSignOn(SingleSignOnT&& value) {
109 m_singleSignOnHasBeenSet = true;
110 m_singleSignOn = std::forward<SingleSignOnT>(value);
111 }
112 template <typename SingleSignOnT = SingleSignOn>
113 GetDomainResult& WithSingleSignOn(SingleSignOnT&& value) {
114 SetSingleSignOn(std::forward<SingleSignOnT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetDomainExecutionRole() const { return m_domainExecutionRole; }
125 template <typename DomainExecutionRoleT = Aws::String>
126 void SetDomainExecutionRole(DomainExecutionRoleT&& value) {
127 m_domainExecutionRoleHasBeenSet = true;
128 m_domainExecutionRole = std::forward<DomainExecutionRoleT>(value);
129 }
130 template <typename DomainExecutionRoleT = Aws::String>
131 GetDomainResult& WithDomainExecutionRole(DomainExecutionRoleT&& value) {
132 SetDomainExecutionRole(std::forward<DomainExecutionRoleT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetArn() const { return m_arn; }
142 template <typename ArnT = Aws::String>
143 void SetArn(ArnT&& value) {
144 m_arnHasBeenSet = true;
145 m_arn = std::forward<ArnT>(value);
146 }
147 template <typename ArnT = Aws::String>
148 GetDomainResult& WithArn(ArnT&& value) {
149 SetArn(std::forward<ArnT>(value));
150 return *this;
151 }
153
155
160 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
161 template <typename KmsKeyIdentifierT = Aws::String>
162 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
163 m_kmsKeyIdentifierHasBeenSet = true;
164 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
165 }
166 template <typename KmsKeyIdentifierT = Aws::String>
167 GetDomainResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
168 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
169 return *this;
170 }
172
174
177 inline DomainStatus GetStatus() const { return m_status; }
178 inline void SetStatus(DomainStatus value) {
179 m_statusHasBeenSet = true;
180 m_status = value;
181 }
183 SetStatus(value);
184 return *this;
185 }
187
189
192 inline const Aws::String& GetPortalUrl() const { return m_portalUrl; }
193 template <typename PortalUrlT = Aws::String>
194 void SetPortalUrl(PortalUrlT&& value) {
195 m_portalUrlHasBeenSet = true;
196 m_portalUrl = std::forward<PortalUrlT>(value);
197 }
198 template <typename PortalUrlT = Aws::String>
199 GetDomainResult& WithPortalUrl(PortalUrlT&& value) {
200 SetPortalUrl(std::forward<PortalUrlT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
210 template <typename CreatedAtT = Aws::Utils::DateTime>
211 void SetCreatedAt(CreatedAtT&& value) {
212 m_createdAtHasBeenSet = true;
213 m_createdAt = std::forward<CreatedAtT>(value);
214 }
215 template <typename CreatedAtT = Aws::Utils::DateTime>
216 GetDomainResult& WithCreatedAt(CreatedAtT&& value) {
217 SetCreatedAt(std::forward<CreatedAtT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
227 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
228 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
229 m_lastUpdatedAtHasBeenSet = true;
230 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
231 }
232 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
233 GetDomainResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
234 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
244 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
245 void SetTags(TagsT&& value) {
246 m_tagsHasBeenSet = true;
247 m_tags = std::forward<TagsT>(value);
248 }
249 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
250 GetDomainResult& WithTags(TagsT&& value) {
251 SetTags(std::forward<TagsT>(value));
252 return *this;
253 }
254 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
255 GetDomainResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
256 m_tagsHasBeenSet = true;
257 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
258 return *this;
259 }
261
263
266 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
267 inline void SetDomainVersion(DomainVersion value) {
268 m_domainVersionHasBeenSet = true;
269 m_domainVersion = value;
270 }
272 SetDomainVersion(value);
273 return *this;
274 }
276
278
281 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
282 template <typename ServiceRoleT = Aws::String>
283 void SetServiceRole(ServiceRoleT&& value) {
284 m_serviceRoleHasBeenSet = true;
285 m_serviceRole = std::forward<ServiceRoleT>(value);
286 }
287 template <typename ServiceRoleT = Aws::String>
288 GetDomainResult& WithServiceRole(ServiceRoleT&& value) {
289 SetServiceRole(std::forward<ServiceRoleT>(value));
290 return *this;
291 }
293
295
296 inline const Aws::String& GetRequestId() const { return m_requestId; }
297 template <typename RequestIdT = Aws::String>
298 void SetRequestId(RequestIdT&& value) {
299 m_requestIdHasBeenSet = true;
300 m_requestId = std::forward<RequestIdT>(value);
301 }
302 template <typename RequestIdT = Aws::String>
303 GetDomainResult& WithRequestId(RequestIdT&& value) {
304 SetRequestId(std::forward<RequestIdT>(value));
305 return *this;
306 }
308 private:
309 Aws::String m_id;
310
311 Aws::String m_rootDomainUnitId;
312
313 Aws::String m_name;
314
315 Aws::String m_description;
316
317 SingleSignOn m_singleSignOn;
318
319 Aws::String m_domainExecutionRole;
320
321 Aws::String m_arn;
322
323 Aws::String m_kmsKeyIdentifier;
324
326
327 Aws::String m_portalUrl;
328
329 Aws::Utils::DateTime m_createdAt{};
330
331 Aws::Utils::DateTime m_lastUpdatedAt{};
332
334
335 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
336
337 Aws::String m_serviceRole;
338
339 Aws::String m_requestId;
340 bool m_idHasBeenSet = false;
341 bool m_rootDomainUnitIdHasBeenSet = false;
342 bool m_nameHasBeenSet = false;
343 bool m_descriptionHasBeenSet = false;
344 bool m_singleSignOnHasBeenSet = false;
345 bool m_domainExecutionRoleHasBeenSet = false;
346 bool m_arnHasBeenSet = false;
347 bool m_kmsKeyIdentifierHasBeenSet = false;
348 bool m_statusHasBeenSet = false;
349 bool m_portalUrlHasBeenSet = false;
350 bool m_createdAtHasBeenSet = false;
351 bool m_lastUpdatedAtHasBeenSet = false;
352 bool m_tagsHasBeenSet = false;
353 bool m_domainVersionHasBeenSet = false;
354 bool m_serviceRoleHasBeenSet = false;
355 bool m_requestIdHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace DataZone
360} // 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)
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