AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateDomainResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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 CreateDomainResult() = 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 CreateDomainResult& 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 CreateDomainResult& 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 CreateDomainResult& 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 CreateDomainResult& 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 CreateDomainResult& WithSingleSignOn(SingleSignOnT&& value) {
114 SetSingleSignOn(std::forward<SingleSignOnT>(value));
115 return *this;
116 }
118
120
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 CreateDomainResult& 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>
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 CreateDomainResult& 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 CreateDomainResult& WithPortalUrl(PortalUrlT&& value) {
201 SetPortalUrl(std::forward<PortalUrlT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
211 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
212 void SetTags(TagsT&& value) {
213 m_tagsHasBeenSet = true;
214 m_tags = std::forward<TagsT>(value);
215 }
216 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
217 CreateDomainResult& WithTags(TagsT&& value) {
218 SetTags(std::forward<TagsT>(value));
219 return *this;
220 }
221 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
222 CreateDomainResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
223 m_tagsHasBeenSet = true;
224 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
225 return *this;
226 }
228
230
233 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
234 inline void SetDomainVersion(DomainVersion value) {
235 m_domainVersionHasBeenSet = true;
236 m_domainVersion = value;
237 }
239 SetDomainVersion(value);
240 return *this;
241 }
243
245
248 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
249 template <typename ServiceRoleT = Aws::String>
250 void SetServiceRole(ServiceRoleT&& value) {
251 m_serviceRoleHasBeenSet = true;
252 m_serviceRole = std::forward<ServiceRoleT>(value);
253 }
254 template <typename ServiceRoleT = Aws::String>
255 CreateDomainResult& WithServiceRole(ServiceRoleT&& value) {
256 SetServiceRole(std::forward<ServiceRoleT>(value));
257 return *this;
258 }
260
262
263 inline const Aws::String& GetRequestId() const { return m_requestId; }
264 template <typename RequestIdT = Aws::String>
265 void SetRequestId(RequestIdT&& value) {
266 m_requestIdHasBeenSet = true;
267 m_requestId = std::forward<RequestIdT>(value);
268 }
269 template <typename RequestIdT = Aws::String>
270 CreateDomainResult& WithRequestId(RequestIdT&& value) {
271 SetRequestId(std::forward<RequestIdT>(value));
272 return *this;
273 }
275 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
276
277 private:
278 Aws::String m_id;
279
280 Aws::String m_rootDomainUnitId;
281
282 Aws::String m_name;
283
284 Aws::String m_description;
285
286 SingleSignOn m_singleSignOn;
287
288 Aws::String m_domainExecutionRole;
289
290 Aws::String m_arn;
291
292 Aws::String m_kmsKeyIdentifier;
293
295
296 Aws::String m_portalUrl;
297
299
300 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
301
302 Aws::String m_serviceRole;
303
304 Aws::String m_requestId;
305 Aws::Http::HttpResponseCode m_HttpResponseCode;
306 bool m_idHasBeenSet = false;
307 bool m_rootDomainUnitIdHasBeenSet = false;
308 bool m_nameHasBeenSet = false;
309 bool m_descriptionHasBeenSet = false;
310 bool m_singleSignOnHasBeenSet = false;
311 bool m_domainExecutionRoleHasBeenSet = false;
312 bool m_arnHasBeenSet = false;
313 bool m_kmsKeyIdentifierHasBeenSet = false;
314 bool m_statusHasBeenSet = false;
315 bool m_portalUrlHasBeenSet = false;
316 bool m_tagsHasBeenSet = false;
317 bool m_domainVersionHasBeenSet = false;
318 bool m_serviceRoleHasBeenSet = false;
319 bool m_requestIdHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace DataZone
324} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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