AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
Organization.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10#include <aws/organizations/model/OrganizationFeatureSet.h>
11#include <aws/organizations/model/PolicyTypeSummary.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Organizations {
23namespace Model {
24
34 public:
35 AWS_ORGANIZATIONS_API Organization() = default;
36 AWS_ORGANIZATIONS_API Organization(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ORGANIZATIONS_API Organization& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 Organization& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetArn() const { return m_arn; }
69 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
70 template <typename ArnT = Aws::String>
71 void SetArn(ArnT&& value) {
72 m_arnHasBeenSet = true;
73 m_arn = std::forward<ArnT>(value);
74 }
75 template <typename ArnT = Aws::String>
76 Organization& WithArn(ArnT&& value) {
77 SetArn(std::forward<ArnT>(value));
78 return *this;
79 }
81
83
92 inline OrganizationFeatureSet GetFeatureSet() const { return m_featureSet; }
93 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
95 m_featureSetHasBeenSet = true;
96 m_featureSet = value;
97 }
99 SetFeatureSet(value);
100 return *this;
101 }
103
105
113 inline const Aws::String& GetMasterAccountArn() const { return m_masterAccountArn; }
114 inline bool MasterAccountArnHasBeenSet() const { return m_masterAccountArnHasBeenSet; }
115 template <typename MasterAccountArnT = Aws::String>
116 void SetMasterAccountArn(MasterAccountArnT&& value) {
117 m_masterAccountArnHasBeenSet = true;
118 m_masterAccountArn = std::forward<MasterAccountArnT>(value);
119 }
120 template <typename MasterAccountArnT = Aws::String>
121 Organization& WithMasterAccountArn(MasterAccountArnT&& value) {
122 SetMasterAccountArn(std::forward<MasterAccountArnT>(value));
123 return *this;
124 }
126
128
133 inline const Aws::String& GetMasterAccountId() const { return m_masterAccountId; }
134 inline bool MasterAccountIdHasBeenSet() const { return m_masterAccountIdHasBeenSet; }
135 template <typename MasterAccountIdT = Aws::String>
136 void SetMasterAccountId(MasterAccountIdT&& value) {
137 m_masterAccountIdHasBeenSet = true;
138 m_masterAccountId = std::forward<MasterAccountIdT>(value);
139 }
140 template <typename MasterAccountIdT = Aws::String>
141 Organization& WithMasterAccountId(MasterAccountIdT&& value) {
142 SetMasterAccountId(std::forward<MasterAccountIdT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetMasterAccountEmail() const { return m_masterAccountEmail; }
153 inline bool MasterAccountEmailHasBeenSet() const { return m_masterAccountEmailHasBeenSet; }
154 template <typename MasterAccountEmailT = Aws::String>
155 void SetMasterAccountEmail(MasterAccountEmailT&& value) {
156 m_masterAccountEmailHasBeenSet = true;
157 m_masterAccountEmail = std::forward<MasterAccountEmailT>(value);
158 }
159 template <typename MasterAccountEmailT = Aws::String>
160 Organization& WithMasterAccountEmail(MasterAccountEmailT&& value) {
161 SetMasterAccountEmail(std::forward<MasterAccountEmailT>(value));
162 return *this;
163 }
165
167
173 inline const Aws::Vector<PolicyTypeSummary>& GetAvailablePolicyTypes() const { return m_availablePolicyTypes; }
174 inline bool AvailablePolicyTypesHasBeenSet() const { return m_availablePolicyTypesHasBeenSet; }
175 template <typename AvailablePolicyTypesT = Aws::Vector<PolicyTypeSummary>>
176 void SetAvailablePolicyTypes(AvailablePolicyTypesT&& value) {
177 m_availablePolicyTypesHasBeenSet = true;
178 m_availablePolicyTypes = std::forward<AvailablePolicyTypesT>(value);
179 }
180 template <typename AvailablePolicyTypesT = Aws::Vector<PolicyTypeSummary>>
181 Organization& WithAvailablePolicyTypes(AvailablePolicyTypesT&& value) {
182 SetAvailablePolicyTypes(std::forward<AvailablePolicyTypesT>(value));
183 return *this;
184 }
185 template <typename AvailablePolicyTypesT = PolicyTypeSummary>
186 Organization& AddAvailablePolicyTypes(AvailablePolicyTypesT&& value) {
187 m_availablePolicyTypesHasBeenSet = true;
188 m_availablePolicyTypes.emplace_back(std::forward<AvailablePolicyTypesT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_id;
194
195 Aws::String m_arn;
196
198
199 Aws::String m_masterAccountArn;
200
201 Aws::String m_masterAccountId;
202
203 Aws::String m_masterAccountEmail;
204
205 Aws::Vector<PolicyTypeSummary> m_availablePolicyTypes;
206 bool m_idHasBeenSet = false;
207 bool m_arnHasBeenSet = false;
208 bool m_featureSetHasBeenSet = false;
209 bool m_masterAccountArnHasBeenSet = false;
210 bool m_masterAccountIdHasBeenSet = false;
211 bool m_masterAccountEmailHasBeenSet = false;
212 bool m_availablePolicyTypesHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace Organizations
217} // namespace Aws
void SetMasterAccountId(MasterAccountIdT &&value)
Organization & AddAvailablePolicyTypes(AvailablePolicyTypesT &&value)
OrganizationFeatureSet GetFeatureSet() const
Organization & WithAvailablePolicyTypes(AvailablePolicyTypesT &&value)
Organization & WithMasterAccountArn(MasterAccountArnT &&value)
const Aws::String & GetMasterAccountArn() const
const Aws::Vector< PolicyTypeSummary > & GetAvailablePolicyTypes() const
const Aws::String & GetId() const
Organization & WithMasterAccountId(MasterAccountIdT &&value)
void SetAvailablePolicyTypes(AvailablePolicyTypesT &&value)
AWS_ORGANIZATIONS_API Organization(Aws::Utils::Json::JsonView jsonValue)
Organization & WithArn(ArnT &&value)
void SetMasterAccountEmail(MasterAccountEmailT &&value)
const Aws::String & GetMasterAccountId() const
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
Organization & WithFeatureSet(OrganizationFeatureSet value)
Organization & WithId(IdT &&value)
const Aws::String & GetArn() const
Organization & WithMasterAccountEmail(MasterAccountEmailT &&value)
AWS_ORGANIZATIONS_API Organization()=default
const Aws::String & GetMasterAccountEmail() const
void SetMasterAccountArn(MasterAccountArnT &&value)
void SetFeatureSet(OrganizationFeatureSet value)
AWS_ORGANIZATIONS_API Organization & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue