AWS SDK for C++  1.9.105
AWS SDK for C++
Root.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Organizations
24 {
25 namespace Model
26 {
27 
37  {
38  public:
39  Root();
43 
44 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
57  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 
64  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
65 
71  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
72 
78  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
79 
85  inline Root& WithId(const Aws::String& value) { SetId(value); return *this;}
86 
92  inline Root& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
93 
99  inline Root& WithId(const char* value) { SetId(value); return *this;}
100 
101 
109  inline const Aws::String& GetArn() const{ return m_arn; }
110 
118  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
119 
127  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
128 
136  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
137 
145  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
146 
154  inline Root& WithArn(const Aws::String& value) { SetArn(value); return *this;}
155 
163  inline Root& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
164 
172  inline Root& WithArn(const char* value) { SetArn(value); return *this;}
173 
174 
181  inline const Aws::String& GetName() const{ return m_name; }
182 
189  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
190 
197  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
198 
205  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
206 
213  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
214 
221  inline Root& WithName(const Aws::String& value) { SetName(value); return *this;}
222 
229  inline Root& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
230 
237  inline Root& WithName(const char* value) { SetName(value); return *this;}
238 
239 
248  inline const Aws::Vector<PolicyTypeSummary>& GetPolicyTypes() const{ return m_policyTypes; }
249 
258  inline bool PolicyTypesHasBeenSet() const { return m_policyTypesHasBeenSet; }
259 
268  inline void SetPolicyTypes(const Aws::Vector<PolicyTypeSummary>& value) { m_policyTypesHasBeenSet = true; m_policyTypes = value; }
269 
278  inline void SetPolicyTypes(Aws::Vector<PolicyTypeSummary>&& value) { m_policyTypesHasBeenSet = true; m_policyTypes = std::move(value); }
279 
288  inline Root& WithPolicyTypes(const Aws::Vector<PolicyTypeSummary>& value) { SetPolicyTypes(value); return *this;}
289 
298  inline Root& WithPolicyTypes(Aws::Vector<PolicyTypeSummary>&& value) { SetPolicyTypes(std::move(value)); return *this;}
299 
308  inline Root& AddPolicyTypes(const PolicyTypeSummary& value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(value); return *this; }
309 
318  inline Root& AddPolicyTypes(PolicyTypeSummary&& value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(std::move(value)); return *this; }
319 
320  private:
321 
322  Aws::String m_id;
323  bool m_idHasBeenSet;
324 
325  Aws::String m_arn;
326  bool m_arnHasBeenSet;
327 
328  Aws::String m_name;
329  bool m_nameHasBeenSet;
330 
331  Aws::Vector<PolicyTypeSummary> m_policyTypes;
332  bool m_policyTypesHasBeenSet;
333  };
334 
335 } // namespace Model
336 } // namespace Organizations
337 } // namespace Aws
Aws::Organizations::Model::Root::PolicyTypesHasBeenSet
bool PolicyTypesHasBeenSet() const
Definition: Root.h:258
Aws::Organizations::Model::Root::Root
Root(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Root::WithName
Root & WithName(Aws::String &&value)
Definition: Root.h:229
Aws::Organizations::Model::Root::GetArn
const Aws::String & GetArn() const
Definition: Root.h:109
Aws::Organizations::Model::Root::SetArn
void SetArn(const Aws::String &value)
Definition: Root.h:127
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::Root::WithId
Root & WithId(Aws::String &&value)
Definition: Root.h:92
AWSVector.h
Aws::Organizations::Model::Root::SetId
void SetId(const Aws::String &value)
Definition: Root.h:64
Aws::Organizations::Model::Root::SetId
void SetId(Aws::String &&value)
Definition: Root.h:71
Aws::Organizations::Model::Root::WithPolicyTypes
Root & WithPolicyTypes(Aws::Vector< PolicyTypeSummary > &&value)
Definition: Root.h:298
Aws::Organizations::Model::Root::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::Root::SetArn
void SetArn(Aws::String &&value)
Definition: Root.h:136
Aws::Organizations::Model::Root::WithPolicyTypes
Root & WithPolicyTypes(const Aws::Vector< PolicyTypeSummary > &value)
Definition: Root.h:288
Aws::Organizations::Model::Root::AddPolicyTypes
Root & AddPolicyTypes(const PolicyTypeSummary &value)
Definition: Root.h:308
Aws::Organizations::Model::Root::SetPolicyTypes
void SetPolicyTypes(const Aws::Vector< PolicyTypeSummary > &value)
Definition: Root.h:268
Aws::Organizations::Model::Root::SetPolicyTypes
void SetPolicyTypes(Aws::Vector< PolicyTypeSummary > &&value)
Definition: Root.h:278
Aws::Organizations::Model::Root::WithName
Root & WithName(const char *value)
Definition: Root.h:237
Aws::Organizations::Model::Root::Root
Root()
Aws::Organizations::Model::Root
Definition: Root.h:37
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::Root::GetPolicyTypes
const Aws::Vector< PolicyTypeSummary > & GetPolicyTypes() const
Definition: Root.h:248
Aws::Organizations::Model::Root::operator=
Root & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Root::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Root.h:189
Aws::Organizations::Model::Root::WithArn
Root & WithArn(Aws::String &&value)
Definition: Root.h:163
Aws::Organizations::Model::Root::GetName
const Aws::String & GetName() const
Definition: Root.h:181
Aws::Organizations::Model::Root::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Root.h:57
Aws::Organizations::Model::Root::SetArn
void SetArn(const char *value)
Definition: Root.h:145
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::Root::WithArn
Root & WithArn(const Aws::String &value)
Definition: Root.h:154
Aws::Organizations::Model::Root::SetName
void SetName(const Aws::String &value)
Definition: Root.h:197
Aws::Organizations::Model::Root::SetName
void SetName(Aws::String &&value)
Definition: Root.h:205
Aws::Organizations::Model::Root::WithName
Root & WithName(const Aws::String &value)
Definition: Root.h:221
Aws::Organizations::Model::Root::WithId
Root & WithId(const char *value)
Definition: Root.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::Root::SetName
void SetName(const char *value)
Definition: Root.h:213
Aws::Organizations::Model::Root::WithId
Root & WithId(const Aws::String &value)
Definition: Root.h:85
Aws::Organizations::Model::Root::GetId
const Aws::String & GetId() const
Definition: Root.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::Root::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Root.h:118
Organizations_EXPORTS.h
Aws::Organizations::Model::Root::AddPolicyTypes
Root & AddPolicyTypes(PolicyTypeSummary &&value)
Definition: Root.h:318
Aws::Organizations::Model::Root::SetId
void SetId(const char *value)
Definition: Root.h:78
PolicyTypeSummary.h
Aws::Organizations::Model::PolicyTypeSummary
Definition: PolicyTypeSummary.h:34
Aws::Organizations::Model::Root::WithArn
Root & WithArn(const char *value)
Definition: Root.h:172