AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
PolicySummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/Organizations_EXPORTS.h>
9#include <aws/organizations/model/PolicyType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Organizations {
21namespace Model {
22
31 public:
32 AWS_ORGANIZATIONS_API PolicySummary() = default;
33 AWS_ORGANIZATIONS_API PolicySummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ORGANIZATIONS_API PolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 PolicySummary& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetArn() const { return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 template <typename ArnT = Aws::String>
69 void SetArn(ArnT&& value) {
70 m_arnHasBeenSet = true;
71 m_arn = std::forward<ArnT>(value);
72 }
73 template <typename ArnT = Aws::String>
74 PolicySummary& WithArn(ArnT&& value) {
75 SetArn(std::forward<ArnT>(value));
76 return *this;
77 }
79
81
87 inline const Aws::String& GetName() const { return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 template <typename NameT = Aws::String>
90 void SetName(NameT&& value) {
91 m_nameHasBeenSet = true;
92 m_name = std::forward<NameT>(value);
93 }
94 template <typename NameT = Aws::String>
95 PolicySummary& WithName(NameT&& value) {
96 SetName(std::forward<NameT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
113 PolicySummary& WithDescription(DescriptionT&& value) {
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
123 inline PolicyType GetType() const { return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(PolicyType value) {
126 m_typeHasBeenSet = true;
127 m_type = value;
128 }
130 SetType(value);
131 return *this;
132 }
134
136
141 inline bool GetAwsManaged() const { return m_awsManaged; }
142 inline bool AwsManagedHasBeenSet() const { return m_awsManagedHasBeenSet; }
143 inline void SetAwsManaged(bool value) {
144 m_awsManagedHasBeenSet = true;
145 m_awsManaged = value;
146 }
147 inline PolicySummary& WithAwsManaged(bool value) {
148 SetAwsManaged(value);
149 return *this;
150 }
152 private:
153 Aws::String m_id;
154
155 Aws::String m_arn;
156
157 Aws::String m_name;
158
159 Aws::String m_description;
160
162
163 bool m_awsManaged{false};
164 bool m_idHasBeenSet = false;
165 bool m_arnHasBeenSet = false;
166 bool m_nameHasBeenSet = false;
167 bool m_descriptionHasBeenSet = false;
168 bool m_typeHasBeenSet = false;
169 bool m_awsManagedHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace Organizations
174} // namespace Aws
const Aws::String & GetName() const
AWS_ORGANIZATIONS_API PolicySummary()=default
const Aws::String & GetArn() const
PolicySummary & WithArn(ArnT &&value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ORGANIZATIONS_API PolicySummary(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
PolicySummary & WithName(NameT &&value)
PolicySummary & WithDescription(DescriptionT &&value)
const Aws::String & GetId() const
AWS_ORGANIZATIONS_API PolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
PolicySummary & WithType(PolicyType value)
PolicySummary & WithId(IdT &&value)
PolicySummary & WithAwsManaged(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue