AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Organization.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/OrganizationFeatureSet.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/organizations/model/PolicyTypeSummary.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Organizations
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_ORGANIZATIONS_API Organization();
41 AWS_ORGANIZATIONS_API Organization(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ORGANIZATIONS_API Organization& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline Organization& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline Organization& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline Organization& WithId(const char* value) { SetId(value); return *this;}
61
63
70 inline const Aws::String& GetArn() const{ return m_arn; }
71 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
72 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
73 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
74 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
75 inline Organization& WithArn(const Aws::String& value) { SetArn(value); return *this;}
76 inline Organization& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 inline Organization& WithArn(const char* value) { SetArn(value); return *this;}
79
81
90 inline const OrganizationFeatureSet& GetFeatureSet() const{ return m_featureSet; }
91 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
92 inline void SetFeatureSet(const OrganizationFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
93 inline void SetFeatureSet(OrganizationFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
94 inline Organization& WithFeatureSet(const OrganizationFeatureSet& value) { SetFeatureSet(value); return *this;}
95 inline Organization& WithFeatureSet(OrganizationFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
97
99
107 inline const Aws::String& GetMasterAccountArn() const{ return m_masterAccountArn; }
108 inline bool MasterAccountArnHasBeenSet() const { return m_masterAccountArnHasBeenSet; }
109 inline void SetMasterAccountArn(const Aws::String& value) { m_masterAccountArnHasBeenSet = true; m_masterAccountArn = value; }
110 inline void SetMasterAccountArn(Aws::String&& value) { m_masterAccountArnHasBeenSet = true; m_masterAccountArn = std::move(value); }
111 inline void SetMasterAccountArn(const char* value) { m_masterAccountArnHasBeenSet = true; m_masterAccountArn.assign(value); }
112 inline Organization& WithMasterAccountArn(const Aws::String& value) { SetMasterAccountArn(value); return *this;}
113 inline Organization& WithMasterAccountArn(Aws::String&& value) { SetMasterAccountArn(std::move(value)); return *this;}
114 inline Organization& WithMasterAccountArn(const char* value) { SetMasterAccountArn(value); return *this;}
116
118
123 inline const Aws::String& GetMasterAccountId() const{ return m_masterAccountId; }
124 inline bool MasterAccountIdHasBeenSet() const { return m_masterAccountIdHasBeenSet; }
125 inline void SetMasterAccountId(const Aws::String& value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId = value; }
126 inline void SetMasterAccountId(Aws::String&& value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId = std::move(value); }
127 inline void SetMasterAccountId(const char* value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId.assign(value); }
128 inline Organization& WithMasterAccountId(const Aws::String& value) { SetMasterAccountId(value); return *this;}
129 inline Organization& WithMasterAccountId(Aws::String&& value) { SetMasterAccountId(std::move(value)); return *this;}
130 inline Organization& WithMasterAccountId(const char* value) { SetMasterAccountId(value); return *this;}
132
134
138 inline const Aws::String& GetMasterAccountEmail() const{ return m_masterAccountEmail; }
139 inline bool MasterAccountEmailHasBeenSet() const { return m_masterAccountEmailHasBeenSet; }
140 inline void SetMasterAccountEmail(const Aws::String& value) { m_masterAccountEmailHasBeenSet = true; m_masterAccountEmail = value; }
141 inline void SetMasterAccountEmail(Aws::String&& value) { m_masterAccountEmailHasBeenSet = true; m_masterAccountEmail = std::move(value); }
142 inline void SetMasterAccountEmail(const char* value) { m_masterAccountEmailHasBeenSet = true; m_masterAccountEmail.assign(value); }
143 inline Organization& WithMasterAccountEmail(const Aws::String& value) { SetMasterAccountEmail(value); return *this;}
144 inline Organization& WithMasterAccountEmail(Aws::String&& value) { SetMasterAccountEmail(std::move(value)); return *this;}
145 inline Organization& WithMasterAccountEmail(const char* value) { SetMasterAccountEmail(value); return *this;}
147
149
155 inline const Aws::Vector<PolicyTypeSummary>& GetAvailablePolicyTypes() const{ return m_availablePolicyTypes; }
156 inline bool AvailablePolicyTypesHasBeenSet() const { return m_availablePolicyTypesHasBeenSet; }
157 inline void SetAvailablePolicyTypes(const Aws::Vector<PolicyTypeSummary>& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes = value; }
158 inline void SetAvailablePolicyTypes(Aws::Vector<PolicyTypeSummary>&& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes = std::move(value); }
161 inline Organization& AddAvailablePolicyTypes(const PolicyTypeSummary& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes.push_back(value); return *this; }
162 inline Organization& AddAvailablePolicyTypes(PolicyTypeSummary&& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes.push_back(std::move(value)); return *this; }
164 private:
165
166 Aws::String m_id;
167 bool m_idHasBeenSet = false;
168
169 Aws::String m_arn;
170 bool m_arnHasBeenSet = false;
171
172 OrganizationFeatureSet m_featureSet;
173 bool m_featureSetHasBeenSet = false;
174
175 Aws::String m_masterAccountArn;
176 bool m_masterAccountArnHasBeenSet = false;
177
178 Aws::String m_masterAccountId;
179 bool m_masterAccountIdHasBeenSet = false;
180
181 Aws::String m_masterAccountEmail;
182 bool m_masterAccountEmailHasBeenSet = false;
183
184 Aws::Vector<PolicyTypeSummary> m_availablePolicyTypes;
185 bool m_availablePolicyTypesHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace Organizations
190} // namespace Aws
void SetAvailablePolicyTypes(const Aws::Vector< PolicyTypeSummary > &value)
Organization & WithArn(const Aws::String &value)
Organization & WithMasterAccountId(Aws::String &&value)
AWS_ORGANIZATIONS_API Organization()
Organization & WithId(Aws::String &&value)
void SetId(const Aws::String &value)
void SetId(Aws::String &&value)
void SetArn(Aws::String &&value)
const Aws::String & GetMasterAccountArn() const
void SetMasterAccountArn(const char *value)
Organization & WithAvailablePolicyTypes(const Aws::Vector< PolicyTypeSummary > &value)
void SetFeatureSet(const OrganizationFeatureSet &value)
const Aws::Vector< PolicyTypeSummary > & GetAvailablePolicyTypes() const
Organization & WithMasterAccountId(const Aws::String &value)
Organization & WithFeatureSet(const OrganizationFeatureSet &value)
void SetMasterAccountEmail(const char *value)
const Aws::String & GetId() const
void SetMasterAccountId(const char *value)
void SetAvailablePolicyTypes(Aws::Vector< PolicyTypeSummary > &&value)
AWS_ORGANIZATIONS_API Organization(Aws::Utils::Json::JsonView jsonValue)
Organization & WithArn(const char *value)
Organization & WithMasterAccountEmail(Aws::String &&value)
void SetFeatureSet(OrganizationFeatureSet &&value)
const Aws::String & GetMasterAccountId() const
Organization & WithMasterAccountArn(Aws::String &&value)
void SetMasterAccountId(Aws::String &&value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMasterAccountEmail(const Aws::String &value)
Organization & WithArn(Aws::String &&value)
void SetArn(const Aws::String &value)
Organization & WithAvailablePolicyTypes(Aws::Vector< PolicyTypeSummary > &&value)
void SetMasterAccountArn(const Aws::String &value)
Organization & WithFeatureSet(OrganizationFeatureSet &&value)
Organization & AddAvailablePolicyTypes(PolicyTypeSummary &&value)
Organization & WithMasterAccountId(const char *value)
Organization & WithMasterAccountArn(const Aws::String &value)
void SetMasterAccountArn(Aws::String &&value)
const Aws::String & GetArn() const
Organization & AddAvailablePolicyTypes(const PolicyTypeSummary &value)
const Aws::String & GetMasterAccountEmail() const
void SetMasterAccountEmail(Aws::String &&value)
Organization & WithMasterAccountArn(const char *value)
Organization & WithMasterAccountEmail(const Aws::String &value)
void SetMasterAccountId(const Aws::String &value)
Organization & WithMasterAccountEmail(const char *value)
Organization & WithId(const char *value)
AWS_ORGANIZATIONS_API Organization & operator=(Aws::Utils::Json::JsonView jsonValue)
const OrganizationFeatureSet & GetFeatureSet() const
Organization & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue