AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Root.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/organizations/model/PolicyTypeSummary.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Organizations
24{
25namespace Model
26{
27
36 class Root
37 {
38 public:
39 AWS_ORGANIZATIONS_API Root();
40 AWS_ORGANIZATIONS_API Root(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ORGANIZATIONS_API Root& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
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 Root& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline Root& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline Root& 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 Root& WithArn(const Aws::String& value) { SetArn(value); return *this;}
76 inline Root& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 inline Root& WithArn(const char* value) { SetArn(value); return *this;}
79
81
87 inline const Aws::String& GetName() const{ return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
91 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
92 inline Root& WithName(const Aws::String& value) { SetName(value); return *this;}
93 inline Root& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
94 inline Root& WithName(const char* value) { SetName(value); return *this;}
96
98
106 inline const Aws::Vector<PolicyTypeSummary>& GetPolicyTypes() const{ return m_policyTypes; }
107 inline bool PolicyTypesHasBeenSet() const { return m_policyTypesHasBeenSet; }
108 inline void SetPolicyTypes(const Aws::Vector<PolicyTypeSummary>& value) { m_policyTypesHasBeenSet = true; m_policyTypes = value; }
109 inline void SetPolicyTypes(Aws::Vector<PolicyTypeSummary>&& value) { m_policyTypesHasBeenSet = true; m_policyTypes = std::move(value); }
110 inline Root& WithPolicyTypes(const Aws::Vector<PolicyTypeSummary>& value) { SetPolicyTypes(value); return *this;}
111 inline Root& WithPolicyTypes(Aws::Vector<PolicyTypeSummary>&& value) { SetPolicyTypes(std::move(value)); return *this;}
112 inline Root& AddPolicyTypes(const PolicyTypeSummary& value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(value); return *this; }
113 inline Root& AddPolicyTypes(PolicyTypeSummary&& value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(std::move(value)); return *this; }
115 private:
116
117 Aws::String m_id;
118 bool m_idHasBeenSet = false;
119
120 Aws::String m_arn;
121 bool m_arnHasBeenSet = false;
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::Vector<PolicyTypeSummary> m_policyTypes;
127 bool m_policyTypesHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Organizations
132} // namespace Aws
const Aws::Vector< PolicyTypeSummary > & GetPolicyTypes() const
Definition Root.h:106
void SetArn(Aws::String &&value)
Definition Root.h:73
void SetPolicyTypes(const Aws::Vector< PolicyTypeSummary > &value)
Definition Root.h:108
Root & WithName(const Aws::String &value)
Definition Root.h:92
bool ArnHasBeenSet() const
Definition Root.h:71
Root & WithId(const Aws::String &value)
Definition Root.h:57
void SetId(const char *value)
Definition Root.h:56
bool PolicyTypesHasBeenSet() const
Definition Root.h:107
void SetName(const char *value)
Definition Root.h:91
Root & WithPolicyTypes(Aws::Vector< PolicyTypeSummary > &&value)
Definition Root.h:111
Root & WithArn(const char *value)
Definition Root.h:77
Root & AddPolicyTypes(const PolicyTypeSummary &value)
Definition Root.h:112
bool IdHasBeenSet() const
Definition Root.h:53
void SetName(const Aws::String &value)
Definition Root.h:89
const Aws::String & GetArn() const
Definition Root.h:70
const Aws::String & GetName() const
Definition Root.h:87
void SetName(Aws::String &&value)
Definition Root.h:90
void SetId(Aws::String &&value)
Definition Root.h:55
const Aws::String & GetId() const
Definition Root.h:52
AWS_ORGANIZATIONS_API Root & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyTypes(Aws::Vector< PolicyTypeSummary > &&value)
Definition Root.h:109
Root & WithName(Aws::String &&value)
Definition Root.h:93
void SetArn(const Aws::String &value)
Definition Root.h:72
Root & WithName(const char *value)
Definition Root.h:94
AWS_ORGANIZATIONS_API Root()
void SetId(const Aws::String &value)
Definition Root.h:54
void SetArn(const char *value)
Definition Root.h:74
Root & WithId(Aws::String &&value)
Definition Root.h:58
bool NameHasBeenSet() const
Definition Root.h:88
Root & WithPolicyTypes(const Aws::Vector< PolicyTypeSummary > &value)
Definition Root.h:110
Root & WithArn(Aws::String &&value)
Definition Root.h:76
Root & AddPolicyTypes(PolicyTypeSummary &&value)
Definition Root.h:113
Root & WithId(const char *value)
Definition Root.h:59
AWS_ORGANIZATIONS_API Root(Aws::Utils::Json::JsonView jsonValue)
Root & WithArn(const Aws::String &value)
Definition Root.h:75
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue