AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
OrganizationDomain.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/DomainStatus.h>
9#include <aws/cloudwatchomni/model/IdentityProvider.h>
10#include <aws/cloudwatchomni/model/IdentityProviderConfiguration.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace CloudWatchOmni {
25namespace Model {
26
34 public:
35 AWS_CLOUDWATCHOMNI_API OrganizationDomain() = default;
36 AWS_CLOUDWATCHOMNI_API OrganizationDomain(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CLOUDWATCHOMNI_API OrganizationDomain& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline const Aws::String& GetDomainId() const { return m_domainId; }
45 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
46 template <typename DomainIdT = Aws::String>
47 void SetDomainId(DomainIdT&& value) {
48 m_domainIdHasBeenSet = true;
49 m_domainId = std::forward<DomainIdT>(value);
50 }
51 template <typename DomainIdT = Aws::String>
52 OrganizationDomain& WithDomainId(DomainIdT&& value) {
53 SetDomainId(std::forward<DomainIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDomainArn() const { return m_domainArn; }
63 inline bool DomainArnHasBeenSet() const { return m_domainArnHasBeenSet; }
64 template <typename DomainArnT = Aws::String>
65 void SetDomainArn(DomainArnT&& value) {
66 m_domainArnHasBeenSet = true;
67 m_domainArn = std::forward<DomainArnT>(value);
68 }
69 template <typename DomainArnT = Aws::String>
70 OrganizationDomain& WithDomainArn(DomainArnT&& value) {
71 SetDomainArn(std::forward<DomainArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 OrganizationDomain& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDomainEndpointUrl() const { return m_domainEndpointUrl; }
99 inline bool DomainEndpointUrlHasBeenSet() const { return m_domainEndpointUrlHasBeenSet; }
100 template <typename DomainEndpointUrlT = Aws::String>
101 void SetDomainEndpointUrl(DomainEndpointUrlT&& value) {
102 m_domainEndpointUrlHasBeenSet = true;
103 m_domainEndpointUrl = std::forward<DomainEndpointUrlT>(value);
104 }
105 template <typename DomainEndpointUrlT = Aws::String>
106 OrganizationDomain& WithDomainEndpointUrl(DomainEndpointUrlT&& value) {
107 SetDomainEndpointUrl(std::forward<DomainEndpointUrlT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<Aws::String>& GetCustomEndpointUrls() const { return m_customEndpointUrls; }
117 inline bool CustomEndpointUrlsHasBeenSet() const { return m_customEndpointUrlsHasBeenSet; }
118 template <typename CustomEndpointUrlsT = Aws::Vector<Aws::String>>
119 void SetCustomEndpointUrls(CustomEndpointUrlsT&& value) {
120 m_customEndpointUrlsHasBeenSet = true;
121 m_customEndpointUrls = std::forward<CustomEndpointUrlsT>(value);
122 }
123 template <typename CustomEndpointUrlsT = Aws::Vector<Aws::String>>
124 OrganizationDomain& WithCustomEndpointUrls(CustomEndpointUrlsT&& value) {
125 SetCustomEndpointUrls(std::forward<CustomEndpointUrlsT>(value));
126 return *this;
127 }
128 template <typename CustomEndpointUrlsT = Aws::String>
129 OrganizationDomain& AddCustomEndpointUrls(CustomEndpointUrlsT&& value) {
130 m_customEndpointUrlsHasBeenSet = true;
131 m_customEndpointUrls.emplace_back(std::forward<CustomEndpointUrlsT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
141 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
142 template <typename OrganizationIdT = Aws::String>
143 void SetOrganizationId(OrganizationIdT&& value) {
144 m_organizationIdHasBeenSet = true;
145 m_organizationId = std::forward<OrganizationIdT>(value);
146 }
147 template <typename OrganizationIdT = Aws::String>
148 OrganizationDomain& WithOrganizationId(OrganizationIdT&& value) {
149 SetOrganizationId(std::forward<OrganizationIdT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
159 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
160 template <typename OwnerAccountIdT = Aws::String>
161 void SetOwnerAccountId(OwnerAccountIdT&& value) {
162 m_ownerAccountIdHasBeenSet = true;
163 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
164 }
165 template <typename OwnerAccountIdT = Aws::String>
166 OrganizationDomain& WithOwnerAccountId(OwnerAccountIdT&& value) {
167 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Vector<IdentityProvider>& GetIdentityProviders() const { return m_identityProviders; }
177 inline bool IdentityProvidersHasBeenSet() const { return m_identityProvidersHasBeenSet; }
178 template <typename IdentityProvidersT = Aws::Vector<IdentityProvider>>
179 void SetIdentityProviders(IdentityProvidersT&& value) {
180 m_identityProvidersHasBeenSet = true;
181 m_identityProviders = std::forward<IdentityProvidersT>(value);
182 }
183 template <typename IdentityProvidersT = Aws::Vector<IdentityProvider>>
184 OrganizationDomain& WithIdentityProviders(IdentityProvidersT&& value) {
185 SetIdentityProviders(std::forward<IdentityProvidersT>(value));
186 return *this;
187 }
189 m_identityProvidersHasBeenSet = true;
190 m_identityProviders.push_back(value);
191 return *this;
192 }
194
196
199 inline const IdentityProviderConfiguration& GetIdentityProviderConfiguration() const { return m_identityProviderConfiguration; }
200 inline bool IdentityProviderConfigurationHasBeenSet() const { return m_identityProviderConfigurationHasBeenSet; }
201 template <typename IdentityProviderConfigurationT = IdentityProviderConfiguration>
202 void SetIdentityProviderConfiguration(IdentityProviderConfigurationT&& value) {
203 m_identityProviderConfigurationHasBeenSet = true;
204 m_identityProviderConfiguration = std::forward<IdentityProviderConfigurationT>(value);
205 }
206 template <typename IdentityProviderConfigurationT = IdentityProviderConfiguration>
207 OrganizationDomain& WithIdentityProviderConfiguration(IdentityProviderConfigurationT&& value) {
208 SetIdentityProviderConfiguration(std::forward<IdentityProviderConfigurationT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetIdentityCenterApplicationArn() const { return m_identityCenterApplicationArn; }
218 inline bool IdentityCenterApplicationArnHasBeenSet() const { return m_identityCenterApplicationArnHasBeenSet; }
219 template <typename IdentityCenterApplicationArnT = Aws::String>
220 void SetIdentityCenterApplicationArn(IdentityCenterApplicationArnT&& value) {
221 m_identityCenterApplicationArnHasBeenSet = true;
222 m_identityCenterApplicationArn = std::forward<IdentityCenterApplicationArnT>(value);
223 }
224 template <typename IdentityCenterApplicationArnT = Aws::String>
225 OrganizationDomain& WithIdentityCenterApplicationArn(IdentityCenterApplicationArnT&& value) {
226 SetIdentityCenterApplicationArn(std::forward<IdentityCenterApplicationArnT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::String& GetRegion() const { return m_region; }
236 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
237 template <typename RegionT = Aws::String>
238 void SetRegion(RegionT&& value) {
239 m_regionHasBeenSet = true;
240 m_region = std::forward<RegionT>(value);
241 }
242 template <typename RegionT = Aws::String>
243 OrganizationDomain& WithRegion(RegionT&& value) {
244 SetRegion(std::forward<RegionT>(value));
245 return *this;
246 }
248
250
253 inline DomainStatus GetStatus() const { return m_status; }
254 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
255 inline void SetStatus(DomainStatus value) {
256 m_statusHasBeenSet = true;
257 m_status = value;
258 }
260 SetStatus(value);
261 return *this;
262 }
264
266
270 inline const Aws::String& GetDomainAccessRoleArn() const { return m_domainAccessRoleArn; }
271 inline bool DomainAccessRoleArnHasBeenSet() const { return m_domainAccessRoleArnHasBeenSet; }
272 template <typename DomainAccessRoleArnT = Aws::String>
273 void SetDomainAccessRoleArn(DomainAccessRoleArnT&& value) {
274 m_domainAccessRoleArnHasBeenSet = true;
275 m_domainAccessRoleArn = std::forward<DomainAccessRoleArnT>(value);
276 }
277 template <typename DomainAccessRoleArnT = Aws::String>
278 OrganizationDomain& WithDomainAccessRoleArn(DomainAccessRoleArnT&& value) {
279 SetDomainAccessRoleArn(std::forward<DomainAccessRoleArnT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
289 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
290 template <typename CreatedAtT = Aws::Utils::DateTime>
291 void SetCreatedAt(CreatedAtT&& value) {
292 m_createdAtHasBeenSet = true;
293 m_createdAt = std::forward<CreatedAtT>(value);
294 }
295 template <typename CreatedAtT = Aws::Utils::DateTime>
296 OrganizationDomain& WithCreatedAt(CreatedAtT&& value) {
297 SetCreatedAt(std::forward<CreatedAtT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
307 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
308 template <typename UpdatedAtT = Aws::Utils::DateTime>
309 void SetUpdatedAt(UpdatedAtT&& value) {
310 m_updatedAtHasBeenSet = true;
311 m_updatedAt = std::forward<UpdatedAtT>(value);
312 }
313 template <typename UpdatedAtT = Aws::Utils::DateTime>
314 OrganizationDomain& WithUpdatedAt(UpdatedAtT&& value) {
315 SetUpdatedAt(std::forward<UpdatedAtT>(value));
316 return *this;
317 }
319 private:
320 Aws::String m_domainId;
321
322 Aws::String m_domainArn;
323
324 Aws::String m_name;
325
326 Aws::String m_domainEndpointUrl;
327
328 Aws::Vector<Aws::String> m_customEndpointUrls;
329
330 Aws::String m_organizationId;
331
332 Aws::String m_ownerAccountId;
333
334 Aws::Vector<IdentityProvider> m_identityProviders;
335
336 IdentityProviderConfiguration m_identityProviderConfiguration;
337
338 Aws::String m_identityCenterApplicationArn;
339
340 Aws::String m_region;
341
343
344 Aws::String m_domainAccessRoleArn;
345
346 Aws::Utils::DateTime m_createdAt{};
347
348 Aws::Utils::DateTime m_updatedAt{};
349 bool m_domainIdHasBeenSet = false;
350 bool m_domainArnHasBeenSet = false;
351 bool m_nameHasBeenSet = false;
352 bool m_domainEndpointUrlHasBeenSet = false;
353 bool m_customEndpointUrlsHasBeenSet = false;
354 bool m_organizationIdHasBeenSet = false;
355 bool m_ownerAccountIdHasBeenSet = false;
356 bool m_identityProvidersHasBeenSet = false;
357 bool m_identityProviderConfigurationHasBeenSet = false;
358 bool m_identityCenterApplicationArnHasBeenSet = false;
359 bool m_regionHasBeenSet = false;
360 bool m_statusHasBeenSet = false;
361 bool m_domainAccessRoleArnHasBeenSet = false;
362 bool m_createdAtHasBeenSet = false;
363 bool m_updatedAtHasBeenSet = false;
364};
365
366} // namespace Model
367} // namespace CloudWatchOmni
368} // namespace Aws
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const IdentityProviderConfiguration & GetIdentityProviderConfiguration() const
OrganizationDomain & AddCustomEndpointUrls(CustomEndpointUrlsT &&value)
OrganizationDomain & WithRegion(RegionT &&value)
AWS_CLOUDWATCHOMNI_API OrganizationDomain(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OrganizationDomain & WithDomainId(DomainIdT &&value)
OrganizationDomain & WithStatus(DomainStatus value)
OrganizationDomain & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< IdentityProvider > & GetIdentityProviders() const
void SetIdentityProviderConfiguration(IdentityProviderConfigurationT &&value)
void SetIdentityProviders(IdentityProvidersT &&value)
OrganizationDomain & AddIdentityProviders(IdentityProvider value)
const Aws::String & GetIdentityCenterApplicationArn() const
AWS_CLOUDWATCHOMNI_API OrganizationDomain()=default
OrganizationDomain & WithOrganizationId(OrganizationIdT &&value)
OrganizationDomain & WithIdentityProviders(IdentityProvidersT &&value)
const Aws::Vector< Aws::String > & GetCustomEndpointUrls() const
const Aws::Utils::DateTime & GetCreatedAt() const
OrganizationDomain & WithDomainAccessRoleArn(DomainAccessRoleArnT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetDomainAccessRoleArn(DomainAccessRoleArnT &&value)
OrganizationDomain & WithCreatedAt(CreatedAtT &&value)
void SetCustomEndpointUrls(CustomEndpointUrlsT &&value)
OrganizationDomain & WithDomainArn(DomainArnT &&value)
OrganizationDomain & WithDomainEndpointUrl(DomainEndpointUrlT &&value)
OrganizationDomain & WithOwnerAccountId(OwnerAccountIdT &&value)
void SetIdentityCenterApplicationArn(IdentityCenterApplicationArnT &&value)
AWS_CLOUDWATCHOMNI_API OrganizationDomain & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetDomainEndpointUrl(DomainEndpointUrlT &&value)
OrganizationDomain & WithIdentityCenterApplicationArn(IdentityCenterApplicationArnT &&value)
OrganizationDomain & WithCustomEndpointUrls(CustomEndpointUrlsT &&value)
OrganizationDomain & WithName(NameT &&value)
OrganizationDomain & WithIdentityProviderConfiguration(IdentityProviderConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector