AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
Root.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/PolicyTypeSummary.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Organizations {
22namespace Model {
23
32class Root {
33 public:
34 AWS_ORGANIZATIONS_API Root() = default;
35 AWS_ORGANIZATIONS_API Root(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ORGANIZATIONS_API Root& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
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 Root& 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 Root& WithArn(ArnT&& value) {
77 SetArn(std::forward<ArnT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::String& GetName() const { return m_name; }
90 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 template <typename NameT = Aws::String>
92 void SetName(NameT&& value) {
93 m_nameHasBeenSet = true;
94 m_name = std::forward<NameT>(value);
95 }
96 template <typename NameT = Aws::String>
97 Root& WithName(NameT&& value) {
98 SetName(std::forward<NameT>(value));
99 return *this;
100 }
102
104
112 inline const Aws::Vector<PolicyTypeSummary>& GetPolicyTypes() const { return m_policyTypes; }
113 inline bool PolicyTypesHasBeenSet() const { return m_policyTypesHasBeenSet; }
114 template <typename PolicyTypesT = Aws::Vector<PolicyTypeSummary>>
115 void SetPolicyTypes(PolicyTypesT&& value) {
116 m_policyTypesHasBeenSet = true;
117 m_policyTypes = std::forward<PolicyTypesT>(value);
118 }
119 template <typename PolicyTypesT = Aws::Vector<PolicyTypeSummary>>
120 Root& WithPolicyTypes(PolicyTypesT&& value) {
121 SetPolicyTypes(std::forward<PolicyTypesT>(value));
122 return *this;
123 }
124 template <typename PolicyTypesT = PolicyTypeSummary>
125 Root& AddPolicyTypes(PolicyTypesT&& value) {
126 m_policyTypesHasBeenSet = true;
127 m_policyTypes.emplace_back(std::forward<PolicyTypesT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_id;
133
134 Aws::String m_arn;
135
136 Aws::String m_name;
137
138 Aws::Vector<PolicyTypeSummary> m_policyTypes;
139 bool m_idHasBeenSet = false;
140 bool m_arnHasBeenSet = false;
141 bool m_nameHasBeenSet = false;
142 bool m_policyTypesHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace Organizations
147} // namespace Aws
const Aws::Vector< PolicyTypeSummary > & GetPolicyTypes() const
Definition Root.h:112
Root & WithName(NameT &&value)
Definition Root.h:97
AWS_ORGANIZATIONS_API Root()=default
void SetArn(ArnT &&value)
Definition Root.h:71
Root & WithId(IdT &&value)
Definition Root.h:54
bool ArnHasBeenSet() const
Definition Root.h:69
bool PolicyTypesHasBeenSet() const
Definition Root.h:113
bool IdHasBeenSet() const
Definition Root.h:47
void SetPolicyTypes(PolicyTypesT &&value)
Definition Root.h:115
const Aws::String & GetArn() const
Definition Root.h:68
const Aws::String & GetName() const
Definition Root.h:89
void SetId(IdT &&value)
Definition Root.h:49
const Aws::String & GetId() const
Definition Root.h:46
AWS_ORGANIZATIONS_API Root & operator=(Aws::Utils::Json::JsonView jsonValue)
Root & WithPolicyTypes(PolicyTypesT &&value)
Definition Root.h:120
Root & AddPolicyTypes(PolicyTypesT &&value)
Definition Root.h:125
bool NameHasBeenSet() const
Definition Root.h:90
void SetName(NameT &&value)
Definition Root.h:92
AWS_ORGANIZATIONS_API Root(Aws::Utils::Json::JsonView jsonValue)
Root & WithArn(ArnT &&value)
Definition Root.h:76
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