AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 Organization& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
72 template<typename ArnT = Aws::String>
73 Organization& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
75
77
86 inline OrganizationFeatureSet GetFeatureSet() const { return m_featureSet; }
87 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
88 inline void SetFeatureSet(OrganizationFeatureSet value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
89 inline Organization& WithFeatureSet(OrganizationFeatureSet value) { SetFeatureSet(value); return *this;}
91
93
101 inline const Aws::String& GetMasterAccountArn() const { return m_masterAccountArn; }
102 inline bool MasterAccountArnHasBeenSet() const { return m_masterAccountArnHasBeenSet; }
103 template<typename MasterAccountArnT = Aws::String>
104 void SetMasterAccountArn(MasterAccountArnT&& value) { m_masterAccountArnHasBeenSet = true; m_masterAccountArn = std::forward<MasterAccountArnT>(value); }
105 template<typename MasterAccountArnT = Aws::String>
106 Organization& WithMasterAccountArn(MasterAccountArnT&& value) { SetMasterAccountArn(std::forward<MasterAccountArnT>(value)); return *this;}
108
110
115 inline const Aws::String& GetMasterAccountId() const { return m_masterAccountId; }
116 inline bool MasterAccountIdHasBeenSet() const { return m_masterAccountIdHasBeenSet; }
117 template<typename MasterAccountIdT = Aws::String>
118 void SetMasterAccountId(MasterAccountIdT&& value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId = std::forward<MasterAccountIdT>(value); }
119 template<typename MasterAccountIdT = Aws::String>
120 Organization& WithMasterAccountId(MasterAccountIdT&& value) { SetMasterAccountId(std::forward<MasterAccountIdT>(value)); return *this;}
122
124
128 inline const Aws::String& GetMasterAccountEmail() const { return m_masterAccountEmail; }
129 inline bool MasterAccountEmailHasBeenSet() const { return m_masterAccountEmailHasBeenSet; }
130 template<typename MasterAccountEmailT = Aws::String>
131 void SetMasterAccountEmail(MasterAccountEmailT&& value) { m_masterAccountEmailHasBeenSet = true; m_masterAccountEmail = std::forward<MasterAccountEmailT>(value); }
132 template<typename MasterAccountEmailT = Aws::String>
133 Organization& WithMasterAccountEmail(MasterAccountEmailT&& value) { SetMasterAccountEmail(std::forward<MasterAccountEmailT>(value)); return *this;}
135
137
143 inline const Aws::Vector<PolicyTypeSummary>& GetAvailablePolicyTypes() const { return m_availablePolicyTypes; }
144 inline bool AvailablePolicyTypesHasBeenSet() const { return m_availablePolicyTypesHasBeenSet; }
145 template<typename AvailablePolicyTypesT = Aws::Vector<PolicyTypeSummary>>
146 void SetAvailablePolicyTypes(AvailablePolicyTypesT&& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes = std::forward<AvailablePolicyTypesT>(value); }
147 template<typename AvailablePolicyTypesT = Aws::Vector<PolicyTypeSummary>>
148 Organization& WithAvailablePolicyTypes(AvailablePolicyTypesT&& value) { SetAvailablePolicyTypes(std::forward<AvailablePolicyTypesT>(value)); return *this;}
149 template<typename AvailablePolicyTypesT = PolicyTypeSummary>
150 Organization& AddAvailablePolicyTypes(AvailablePolicyTypesT&& value) { m_availablePolicyTypesHasBeenSet = true; m_availablePolicyTypes.emplace_back(std::forward<AvailablePolicyTypesT>(value)); return *this; }
152 private:
153
154 Aws::String m_id;
155 bool m_idHasBeenSet = false;
156
157 Aws::String m_arn;
158 bool m_arnHasBeenSet = false;
159
161 bool m_featureSetHasBeenSet = false;
162
163 Aws::String m_masterAccountArn;
164 bool m_masterAccountArnHasBeenSet = false;
165
166 Aws::String m_masterAccountId;
167 bool m_masterAccountIdHasBeenSet = false;
168
169 Aws::String m_masterAccountEmail;
170 bool m_masterAccountEmailHasBeenSet = false;
171
172 Aws::Vector<PolicyTypeSummary> m_availablePolicyTypes;
173 bool m_availablePolicyTypesHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Organizations
178} // 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