AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateDomainResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/DomainStatus.h>
11#include <aws/datazone/model/DomainVersion.h>
12#include <aws/datazone/model/SingleSignOn.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
28 public:
29 AWS_DATAZONE_API CreateDomainResult() = default;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
44 CreateDomainResult& WithId(IdT&& value) {
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetRootDomainUnitId() const { return m_rootDomainUnitId; }
55 template <typename RootDomainUnitIdT = Aws::String>
56 void SetRootDomainUnitId(RootDomainUnitIdT&& value) {
57 m_rootDomainUnitIdHasBeenSet = true;
58 m_rootDomainUnitId = std::forward<RootDomainUnitIdT>(value);
59 }
60 template <typename RootDomainUnitIdT = Aws::String>
61 CreateDomainResult& WithRootDomainUnitId(RootDomainUnitIdT&& value) {
62 SetRootDomainUnitId(std::forward<RootDomainUnitIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
78 CreateDomainResult& WithName(NameT&& value) {
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
95 CreateDomainResult& WithDescription(DescriptionT&& value) {
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
105 inline const SingleSignOn& GetSingleSignOn() const { return m_singleSignOn; }
106 template <typename SingleSignOnT = SingleSignOn>
107 void SetSingleSignOn(SingleSignOnT&& value) {
108 m_singleSignOnHasBeenSet = true;
109 m_singleSignOn = std::forward<SingleSignOnT>(value);
110 }
111 template <typename SingleSignOnT = SingleSignOn>
112 CreateDomainResult& WithSingleSignOn(SingleSignOnT&& value) {
113 SetSingleSignOn(std::forward<SingleSignOnT>(value));
114 return *this;
115 }
117
119
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 CreateDomainResult& 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>
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 CreateDomainResult& 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 CreateDomainResult& WithPortalUrl(PortalUrlT&& value) {
200 SetPortalUrl(std::forward<PortalUrlT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
210 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 void SetTags(TagsT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags = std::forward<TagsT>(value);
214 }
215 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
216 CreateDomainResult& WithTags(TagsT&& value) {
217 SetTags(std::forward<TagsT>(value));
218 return *this;
219 }
220 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
221 CreateDomainResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
224 return *this;
225 }
227
229
232 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
233 inline void SetDomainVersion(DomainVersion value) {
234 m_domainVersionHasBeenSet = true;
235 m_domainVersion = value;
236 }
238 SetDomainVersion(value);
239 return *this;
240 }
242
244
247 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
248 template <typename ServiceRoleT = Aws::String>
249 void SetServiceRole(ServiceRoleT&& value) {
250 m_serviceRoleHasBeenSet = true;
251 m_serviceRole = std::forward<ServiceRoleT>(value);
252 }
253 template <typename ServiceRoleT = Aws::String>
254 CreateDomainResult& WithServiceRole(ServiceRoleT&& value) {
255 SetServiceRole(std::forward<ServiceRoleT>(value));
256 return *this;
257 }
259
261
262 inline const Aws::String& GetRequestId() const { return m_requestId; }
263 template <typename RequestIdT = Aws::String>
264 void SetRequestId(RequestIdT&& value) {
265 m_requestIdHasBeenSet = true;
266 m_requestId = std::forward<RequestIdT>(value);
267 }
268 template <typename RequestIdT = Aws::String>
269 CreateDomainResult& WithRequestId(RequestIdT&& value) {
270 SetRequestId(std::forward<RequestIdT>(value));
271 return *this;
272 }
274 private:
275 Aws::String m_id;
276
277 Aws::String m_rootDomainUnitId;
278
279 Aws::String m_name;
280
281 Aws::String m_description;
282
283 SingleSignOn m_singleSignOn;
284
285 Aws::String m_domainExecutionRole;
286
287 Aws::String m_arn;
288
289 Aws::String m_kmsKeyIdentifier;
290
292
293 Aws::String m_portalUrl;
294
296
297 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
298
299 Aws::String m_serviceRole;
300
301 Aws::String m_requestId;
302 bool m_idHasBeenSet = false;
303 bool m_rootDomainUnitIdHasBeenSet = false;
304 bool m_nameHasBeenSet = false;
305 bool m_descriptionHasBeenSet = false;
306 bool m_singleSignOnHasBeenSet = false;
307 bool m_domainExecutionRoleHasBeenSet = false;
308 bool m_arnHasBeenSet = false;
309 bool m_kmsKeyIdentifierHasBeenSet = false;
310 bool m_statusHasBeenSet = false;
311 bool m_portalUrlHasBeenSet = false;
312 bool m_tagsHasBeenSet = false;
313 bool m_domainVersionHasBeenSet = false;
314 bool m_serviceRoleHasBeenSet = false;
315 bool m_requestIdHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace DataZone
320} // namespace Aws
CreateDomainResult & WithName(NameT &&value)
AWS_DATAZONE_API CreateDomainResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const SingleSignOn & GetSingleSignOn() const
const Aws::String & GetRootDomainUnitId() const
CreateDomainResult & WithPortalUrl(PortalUrlT &&value)
CreateDomainResult & WithArn(ArnT &&value)
void SetDomainExecutionRole(DomainExecutionRoleT &&value)
CreateDomainResult & WithId(IdT &&value)
CreateDomainResult & WithServiceRole(ServiceRoleT &&value)
CreateDomainResult & WithDomainExecutionRole(DomainExecutionRoleT &&value)
void SetRootDomainUnitId(RootDomainUnitIdT &&value)
const Aws::String & GetDomainExecutionRole() const
void SetSingleSignOn(SingleSignOnT &&value)
CreateDomainResult & WithDomainVersion(DomainVersion value)
CreateDomainResult & WithRootDomainUnitId(RootDomainUnitIdT &&value)
AWS_DATAZONE_API CreateDomainResult()=default
CreateDomainResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
AWS_DATAZONE_API CreateDomainResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDomainResult & WithStatus(DomainStatus value)
CreateDomainResult & WithSingleSignOn(SingleSignOnT &&value)
const Aws::String & GetDescription() const
CreateDomainResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDomainResult & WithDescription(DescriptionT &&value)
const Aws::String & GetKmsKeyIdentifier() const
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateDomainResult & WithRequestId(RequestIdT &&value)
CreateDomainResult & WithTags(TagsT &&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