AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 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 Root& 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 Root& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
75
77
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template<typename NameT = Aws::String>
86 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
87 template<typename NameT = Aws::String>
88 Root& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
90
92
100 inline const Aws::Vector<PolicyTypeSummary>& GetPolicyTypes() const { return m_policyTypes; }
101 inline bool PolicyTypesHasBeenSet() const { return m_policyTypesHasBeenSet; }
102 template<typename PolicyTypesT = Aws::Vector<PolicyTypeSummary>>
103 void SetPolicyTypes(PolicyTypesT&& value) { m_policyTypesHasBeenSet = true; m_policyTypes = std::forward<PolicyTypesT>(value); }
104 template<typename PolicyTypesT = Aws::Vector<PolicyTypeSummary>>
105 Root& WithPolicyTypes(PolicyTypesT&& value) { SetPolicyTypes(std::forward<PolicyTypesT>(value)); return *this;}
106 template<typename PolicyTypesT = PolicyTypeSummary>
107 Root& AddPolicyTypes(PolicyTypesT&& value) { m_policyTypesHasBeenSet = true; m_policyTypes.emplace_back(std::forward<PolicyTypesT>(value)); return *this; }
109 private:
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 Aws::String m_arn;
115 bool m_arnHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::Vector<PolicyTypeSummary> m_policyTypes;
121 bool m_policyTypesHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Organizations
126} // namespace Aws
const Aws::Vector< PolicyTypeSummary > & GetPolicyTypes() const
Definition Root.h:100
Root & WithName(NameT &&value)
Definition Root.h:88
AWS_ORGANIZATIONS_API Root()=default
void SetArn(ArnT &&value)
Definition Root.h:71
Root & WithId(IdT &&value)
Definition Root.h:57
bool ArnHasBeenSet() const
Definition Root.h:69
bool PolicyTypesHasBeenSet() const
Definition Root.h:101
bool IdHasBeenSet() const
Definition Root.h:53
void SetPolicyTypes(PolicyTypesT &&value)
Definition Root.h:103
const Aws::String & GetArn() const
Definition Root.h:68
const Aws::String & GetName() const
Definition Root.h:83
void SetId(IdT &&value)
Definition Root.h:55
const Aws::String & GetId() const
Definition Root.h:52
AWS_ORGANIZATIONS_API Root & operator=(Aws::Utils::Json::JsonView jsonValue)
Root & WithPolicyTypes(PolicyTypesT &&value)
Definition Root.h:105
Root & AddPolicyTypes(PolicyTypesT &&value)
Definition Root.h:107
bool NameHasBeenSet() const
Definition Root.h:84
void SetName(NameT &&value)
Definition Root.h:86
AWS_ORGANIZATIONS_API Root(Aws::Utils::Json::JsonView jsonValue)
Root & WithArn(ArnT &&value)
Definition Root.h:73
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