AWS SDK for C++  1.9.108
AWS SDK for C++
Organization.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Organizations
25 {
26 namespace Model
27 {
28 
38  {
39  public:
44 
45 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
58  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 
65  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
66 
72  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
73 
79  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
80 
86  inline Organization& WithId(const Aws::String& value) { SetId(value); return *this;}
87 
93  inline Organization& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
94 
100  inline Organization& WithId(const char* value) { SetId(value); return *this;}
101 
102 
110  inline const Aws::String& GetArn() const{ return m_arn; }
111 
119  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
120 
128  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
129 
137  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
138 
146  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
147 
155  inline Organization& WithArn(const Aws::String& value) { SetArn(value); return *this;}
156 
164  inline Organization& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
165 
173  inline Organization& WithArn(const char* value) { SetArn(value); return *this;}
174 
175 
185  inline const OrganizationFeatureSet& GetFeatureSet() const{ return m_featureSet; }
186 
196  inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
197 
207  inline void SetFeatureSet(const OrganizationFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
208 
218  inline void SetFeatureSet(OrganizationFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
219 
229  inline Organization& WithFeatureSet(const OrganizationFeatureSet& value) { SetFeatureSet(value); return *this;}
230 
240  inline Organization& WithFeatureSet(OrganizationFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
241 
242 
251  inline const Aws::String& GetMasterAccountArn() const{ return m_masterAccountArn; }
252 
261  inline bool MasterAccountArnHasBeenSet() const { return m_masterAccountArnHasBeenSet; }
262 
271  inline void SetMasterAccountArn(const Aws::String& value) { m_masterAccountArnHasBeenSet = true; m_masterAccountArn = value; }
272 
281  inline void SetMasterAccountArn(Aws::String&& value) { m_masterAccountArnHasBeenSet = true; m_masterAccountArn = std::move(value); }
282 
291  inline void SetMasterAccountArn(const char* value) { m_masterAccountArnHasBeenSet = true; m_masterAccountArn.assign(value); }
292 
301  inline Organization& WithMasterAccountArn(const Aws::String& value) { SetMasterAccountArn(value); return *this;}
302 
311  inline Organization& WithMasterAccountArn(Aws::String&& value) { SetMasterAccountArn(std::move(value)); return *this;}
312 
321  inline Organization& WithMasterAccountArn(const char* value) { SetMasterAccountArn(value); return *this;}
322 
323 
329  inline const Aws::String& GetMasterAccountId() const{ return m_masterAccountId; }
330 
336  inline bool MasterAccountIdHasBeenSet() const { return m_masterAccountIdHasBeenSet; }
337 
343  inline void SetMasterAccountId(const Aws::String& value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId = value; }
344 
350  inline void SetMasterAccountId(Aws::String&& value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId = std::move(value); }
351 
357  inline void SetMasterAccountId(const char* value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId.assign(value); }
358 
364  inline Organization& WithMasterAccountId(const Aws::String& value) { SetMasterAccountId(value); return *this;}
365 
371  inline Organization& WithMasterAccountId(Aws::String&& value) { SetMasterAccountId(std::move(value)); return *this;}
372 
378  inline Organization& WithMasterAccountId(const char* value) { SetMasterAccountId(value); return *this;}
379 
380 
385  inline const Aws::String& GetMasterAccountEmail() const{ return m_masterAccountEmail; }
386 
391  inline bool MasterAccountEmailHasBeenSet() const { return m_masterAccountEmailHasBeenSet; }
392 
397  inline void SetMasterAccountEmail(const Aws::String& value) { m_masterAccountEmailHasBeenSet = true; m_masterAccountEmail = value; }
398 
403  inline void SetMasterAccountEmail(Aws::String&& value) { m_masterAccountEmailHasBeenSet = true; m_masterAccountEmail = std::move(value); }
404 
409  inline void SetMasterAccountEmail(const char* value) { m_masterAccountEmailHasBeenSet = true; m_masterAccountEmail.assign(value); }
410 
415  inline Organization& WithMasterAccountEmail(const Aws::String& value) { SetMasterAccountEmail(value); return *this;}
416 
421  inline Organization& WithMasterAccountEmail(Aws::String&& value) { SetMasterAccountEmail(std::move(value)); return *this;}
422 
427  inline Organization& WithMasterAccountEmail(const char* value) { SetMasterAccountEmail(value); return *this;}
428 
429 
436  inline const Aws::Vector<PolicyTypeSummary>& GetAvailablePolicyTypes() const{ return m_availablePolicyTypes; }
437 
444  inline bool AvailablePolicyTypesHasBeenSet() const { return m_availablePolicyTypesHasBeenSet; }
445 
452  inline void SetAvailablePolicyTypes(const Aws::Vector<PolicyTypeSummary>& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes = value; }
453 
460  inline void SetAvailablePolicyTypes(Aws::Vector<PolicyTypeSummary>&& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes = std::move(value); }
461 
468  inline Organization& WithAvailablePolicyTypes(const Aws::Vector<PolicyTypeSummary>& value) { SetAvailablePolicyTypes(value); return *this;}
469 
476  inline Organization& WithAvailablePolicyTypes(Aws::Vector<PolicyTypeSummary>&& value) { SetAvailablePolicyTypes(std::move(value)); return *this;}
477 
484  inline Organization& AddAvailablePolicyTypes(const PolicyTypeSummary& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes.push_back(value); return *this; }
485 
492  inline Organization& AddAvailablePolicyTypes(PolicyTypeSummary&& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes.push_back(std::move(value)); return *this; }
493 
494  private:
495 
496  Aws::String m_id;
497  bool m_idHasBeenSet;
498 
499  Aws::String m_arn;
500  bool m_arnHasBeenSet;
501 
502  OrganizationFeatureSet m_featureSet;
503  bool m_featureSetHasBeenSet;
504 
505  Aws::String m_masterAccountArn;
506  bool m_masterAccountArnHasBeenSet;
507 
508  Aws::String m_masterAccountId;
509  bool m_masterAccountIdHasBeenSet;
510 
511  Aws::String m_masterAccountEmail;
512  bool m_masterAccountEmailHasBeenSet;
513 
514  Aws::Vector<PolicyTypeSummary> m_availablePolicyTypes;
515  bool m_availablePolicyTypesHasBeenSet;
516  };
517 
518 } // namespace Model
519 } // namespace Organizations
520 } // namespace Aws
Aws::Organizations::Model::Organization::SetMasterAccountEmail
void SetMasterAccountEmail(const char *value)
Definition: Organization.h:409
Aws::Organizations::Model::Organization::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Organization.h:119
Aws::Organizations::Model::Organization::MasterAccountArnHasBeenSet
bool MasterAccountArnHasBeenSet() const
Definition: Organization.h:261
Aws::Organizations::Model::Organization::Organization
Organization()
Aws::Organizations::Model::Organization::SetAvailablePolicyTypes
void SetAvailablePolicyTypes(const Aws::Vector< PolicyTypeSummary > &value)
Definition: Organization.h:452
OrganizationFeatureSet.h
Aws::Organizations::Model::Organization::WithMasterAccountEmail
Organization & WithMasterAccountEmail(const char *value)
Definition: Organization.h:427
Aws::Organizations::Model::Organization::GetArn
const Aws::String & GetArn() const
Definition: Organization.h:110
Aws::Organizations::Model::OrganizationFeatureSet
OrganizationFeatureSet
Definition: OrganizationFeatureSet.h:17
Aws::Organizations::Model::Organization::Organization
Organization(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Organization::GetMasterAccountArn
const Aws::String & GetMasterAccountArn() const
Definition: Organization.h:251
Aws::Organizations::Model::Organization::SetMasterAccountArn
void SetMasterAccountArn(const char *value)
Definition: Organization.h:291
Aws::Organizations::Model::Organization::SetMasterAccountArn
void SetMasterAccountArn(const Aws::String &value)
Definition: Organization.h:271
Aws::Organizations::Model::Organization::SetMasterAccountEmail
void SetMasterAccountEmail(Aws::String &&value)
Definition: Organization.h:403
Aws::Organizations::Model::Organization::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Organization.h:58
Aws::Organizations::Model::Organization::SetId
void SetId(const char *value)
Definition: Organization.h:79
Aws::Organizations::Model::Organization::WithId
Organization & WithId(const char *value)
Definition: Organization.h:100
Aws::Organizations::Model::Organization::WithFeatureSet
Organization & WithFeatureSet(OrganizationFeatureSet &&value)
Definition: Organization.h:240
Aws::Organizations::Model::Organization
Definition: Organization.h:38
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::Organization::AvailablePolicyTypesHasBeenSet
bool AvailablePolicyTypesHasBeenSet() const
Definition: Organization.h:444
AWSVector.h
Aws::Organizations::Model::Organization::WithMasterAccountId
Organization & WithMasterAccountId(const Aws::String &value)
Definition: Organization.h:364
Aws::Organizations::Model::Organization::SetId
void SetId(const Aws::String &value)
Definition: Organization.h:65
Aws::Organizations::Model::Organization::SetMasterAccountId
void SetMasterAccountId(const Aws::String &value)
Definition: Organization.h:343
Aws::Organizations::Model::Organization::WithAvailablePolicyTypes
Organization & WithAvailablePolicyTypes(const Aws::Vector< PolicyTypeSummary > &value)
Definition: Organization.h:468
Aws::Organizations::Model::Organization::WithArn
Organization & WithArn(const Aws::String &value)
Definition: Organization.h:155
Aws::Organizations::Model::Organization::WithMasterAccountArn
Organization & WithMasterAccountArn(const Aws::String &value)
Definition: Organization.h:301
Aws::Organizations::Model::Organization::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::Organization::AddAvailablePolicyTypes
Organization & AddAvailablePolicyTypes(PolicyTypeSummary &&value)
Definition: Organization.h:492
Aws::Organizations::Model::Organization::GetMasterAccountEmail
const Aws::String & GetMasterAccountEmail() const
Definition: Organization.h:385
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::Organization::WithMasterAccountEmail
Organization & WithMasterAccountEmail(Aws::String &&value)
Definition: Organization.h:421
Aws::Organizations::Model::Organization::SetAvailablePolicyTypes
void SetAvailablePolicyTypes(Aws::Vector< PolicyTypeSummary > &&value)
Definition: Organization.h:460
Aws::Organizations::Model::Organization::WithId
Organization & WithId(Aws::String &&value)
Definition: Organization.h:93
Aws::Organizations::Model::Organization::WithArn
Organization & WithArn(const char *value)
Definition: Organization.h:173
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::Organization::SetMasterAccountEmail
void SetMasterAccountEmail(const Aws::String &value)
Definition: Organization.h:397
Aws::Organizations::Model::Organization::GetAvailablePolicyTypes
const Aws::Vector< PolicyTypeSummary > & GetAvailablePolicyTypes() const
Definition: Organization.h:436
Aws::Organizations::Model::Organization::SetArn
void SetArn(const char *value)
Definition: Organization.h:146
Aws::Organizations::Model::Organization::WithAvailablePolicyTypes
Organization & WithAvailablePolicyTypes(Aws::Vector< PolicyTypeSummary > &&value)
Definition: Organization.h:476
Aws::Organizations::Model::Organization::MasterAccountIdHasBeenSet
bool MasterAccountIdHasBeenSet() const
Definition: Organization.h:336
Aws::Organizations::Model::Organization::SetArn
void SetArn(Aws::String &&value)
Definition: Organization.h:137
Aws::Organizations::Model::Organization::SetId
void SetId(Aws::String &&value)
Definition: Organization.h:72
Aws::Organizations::Model::Organization::WithMasterAccountId
Organization & WithMasterAccountId(const char *value)
Definition: Organization.h:378
Aws::Organizations::Model::Organization::WithMasterAccountArn
Organization & WithMasterAccountArn(const char *value)
Definition: Organization.h:321
Aws::Organizations::Model::Organization::WithArn
Organization & WithArn(Aws::String &&value)
Definition: Organization.h:164
Aws::Organizations::Model::Organization::FeatureSetHasBeenSet
bool FeatureSetHasBeenSet() const
Definition: Organization.h:196
Aws::Organizations::Model::Organization::SetMasterAccountArn
void SetMasterAccountArn(Aws::String &&value)
Definition: Organization.h:281
Aws::Organizations::Model::Organization::GetId
const Aws::String & GetId() const
Definition: Organization.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::Organization::WithMasterAccountArn
Organization & WithMasterAccountArn(Aws::String &&value)
Definition: Organization.h:311
Aws::Organizations::Model::Organization::SetFeatureSet
void SetFeatureSet(OrganizationFeatureSet &&value)
Definition: Organization.h:218
Aws::Organizations::Model::Organization::WithId
Organization & WithId(const Aws::String &value)
Definition: Organization.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::Organization::WithMasterAccountEmail
Organization & WithMasterAccountEmail(const Aws::String &value)
Definition: Organization.h:415
Aws::Organizations::Model::Organization::SetMasterAccountId
void SetMasterAccountId(const char *value)
Definition: Organization.h:357
Organizations_EXPORTS.h
Aws::Organizations::Model::Organization::operator=
Organization & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Organization::WithFeatureSet
Organization & WithFeatureSet(const OrganizationFeatureSet &value)
Definition: Organization.h:229
Aws::Organizations::Model::Organization::SetArn
void SetArn(const Aws::String &value)
Definition: Organization.h:128
Aws::Organizations::Model::Organization::MasterAccountEmailHasBeenSet
bool MasterAccountEmailHasBeenSet() const
Definition: Organization.h:391
PolicyTypeSummary.h
Aws::Organizations::Model::PolicyTypeSummary
Definition: PolicyTypeSummary.h:34
Aws::Organizations::Model::Organization::WithMasterAccountId
Organization & WithMasterAccountId(Aws::String &&value)
Definition: Organization.h:371
Aws::Organizations::Model::Organization::SetFeatureSet
void SetFeatureSet(const OrganizationFeatureSet &value)
Definition: Organization.h:207
Aws::Organizations::Model::Organization::GetFeatureSet
const OrganizationFeatureSet & GetFeatureSet() const
Definition: Organization.h:185
Aws::Organizations::Model::Organization::AddAvailablePolicyTypes
Organization & AddAvailablePolicyTypes(const PolicyTypeSummary &value)
Definition: Organization.h:484
Aws::Organizations::Model::Organization::SetMasterAccountId
void SetMasterAccountId(Aws::String &&value)
Definition: Organization.h:350
Aws::Organizations::Model::Organization::GetMasterAccountId
const Aws::String & GetMasterAccountId() const
Definition: Organization.h:329