AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsIamPolicyDetails.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsIamPolicyVersion.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
30 public:
31 AWS_SECURITYHUB_API AwsIamPolicyDetails() = default;
32 AWS_SECURITYHUB_API AwsIamPolicyDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetAttachmentCount() const { return m_attachmentCount; }
41 inline bool AttachmentCountHasBeenSet() const { return m_attachmentCountHasBeenSet; }
42 inline void SetAttachmentCount(int value) {
43 m_attachmentCountHasBeenSet = true;
44 m_attachmentCount = value;
45 }
47 SetAttachmentCount(value);
48 return *this;
49 }
51
53
58 inline const Aws::String& GetCreateDate() const { return m_createDate; }
59 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
60 template <typename CreateDateT = Aws::String>
61 void SetCreateDate(CreateDateT&& value) {
62 m_createDateHasBeenSet = true;
63 m_createDate = std::forward<CreateDateT>(value);
64 }
65 template <typename CreateDateT = Aws::String>
66 AwsIamPolicyDetails& WithCreateDate(CreateDateT&& value) {
67 SetCreateDate(std::forward<CreateDateT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDefaultVersionId() const { return m_defaultVersionId; }
77 inline bool DefaultVersionIdHasBeenSet() const { return m_defaultVersionIdHasBeenSet; }
78 template <typename DefaultVersionIdT = Aws::String>
79 void SetDefaultVersionId(DefaultVersionIdT&& value) {
80 m_defaultVersionIdHasBeenSet = true;
81 m_defaultVersionId = std::forward<DefaultVersionIdT>(value);
82 }
83 template <typename DefaultVersionIdT = Aws::String>
84 AwsIamPolicyDetails& WithDefaultVersionId(DefaultVersionIdT&& value) {
85 SetDefaultVersionId(std::forward<DefaultVersionIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
102 AwsIamPolicyDetails& WithDescription(DescriptionT&& value) {
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
112 inline bool GetIsAttachable() const { return m_isAttachable; }
113 inline bool IsAttachableHasBeenSet() const { return m_isAttachableHasBeenSet; }
114 inline void SetIsAttachable(bool value) {
115 m_isAttachableHasBeenSet = true;
116 m_isAttachable = value;
117 }
119 SetIsAttachable(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetPath() const { return m_path; }
129 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
130 template <typename PathT = Aws::String>
131 void SetPath(PathT&& value) {
132 m_pathHasBeenSet = true;
133 m_path = std::forward<PathT>(value);
134 }
135 template <typename PathT = Aws::String>
137 SetPath(std::forward<PathT>(value));
138 return *this;
139 }
141
143
147 inline int GetPermissionsBoundaryUsageCount() const { return m_permissionsBoundaryUsageCount; }
148 inline bool PermissionsBoundaryUsageCountHasBeenSet() const { return m_permissionsBoundaryUsageCountHasBeenSet; }
149 inline void SetPermissionsBoundaryUsageCount(int value) {
150 m_permissionsBoundaryUsageCountHasBeenSet = true;
151 m_permissionsBoundaryUsageCount = value;
152 }
155 return *this;
156 }
158
160
163 inline const Aws::String& GetPolicyId() const { return m_policyId; }
164 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
165 template <typename PolicyIdT = Aws::String>
166 void SetPolicyId(PolicyIdT&& value) {
167 m_policyIdHasBeenSet = true;
168 m_policyId = std::forward<PolicyIdT>(value);
169 }
170 template <typename PolicyIdT = Aws::String>
171 AwsIamPolicyDetails& WithPolicyId(PolicyIdT&& value) {
172 SetPolicyId(std::forward<PolicyIdT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::String& GetPolicyName() const { return m_policyName; }
182 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
183 template <typename PolicyNameT = Aws::String>
184 void SetPolicyName(PolicyNameT&& value) {
185 m_policyNameHasBeenSet = true;
186 m_policyName = std::forward<PolicyNameT>(value);
187 }
188 template <typename PolicyNameT = Aws::String>
189 AwsIamPolicyDetails& WithPolicyName(PolicyNameT&& value) {
190 SetPolicyName(std::forward<PolicyNameT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Vector<AwsIamPolicyVersion>& GetPolicyVersionList() const { return m_policyVersionList; }
200 inline bool PolicyVersionListHasBeenSet() const { return m_policyVersionListHasBeenSet; }
201 template <typename PolicyVersionListT = Aws::Vector<AwsIamPolicyVersion>>
202 void SetPolicyVersionList(PolicyVersionListT&& value) {
203 m_policyVersionListHasBeenSet = true;
204 m_policyVersionList = std::forward<PolicyVersionListT>(value);
205 }
206 template <typename PolicyVersionListT = Aws::Vector<AwsIamPolicyVersion>>
207 AwsIamPolicyDetails& WithPolicyVersionList(PolicyVersionListT&& value) {
208 SetPolicyVersionList(std::forward<PolicyVersionListT>(value));
209 return *this;
210 }
211 template <typename PolicyVersionListT = AwsIamPolicyVersion>
212 AwsIamPolicyDetails& AddPolicyVersionList(PolicyVersionListT&& value) {
213 m_policyVersionListHasBeenSet = true;
214 m_policyVersionList.emplace_back(std::forward<PolicyVersionListT>(value));
215 return *this;
216 }
218
220
225 inline const Aws::String& GetUpdateDate() const { return m_updateDate; }
226 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
227 template <typename UpdateDateT = Aws::String>
228 void SetUpdateDate(UpdateDateT&& value) {
229 m_updateDateHasBeenSet = true;
230 m_updateDate = std::forward<UpdateDateT>(value);
231 }
232 template <typename UpdateDateT = Aws::String>
233 AwsIamPolicyDetails& WithUpdateDate(UpdateDateT&& value) {
234 SetUpdateDate(std::forward<UpdateDateT>(value));
235 return *this;
236 }
238 private:
239 int m_attachmentCount{0};
240
241 Aws::String m_createDate;
242
243 Aws::String m_defaultVersionId;
244
245 Aws::String m_description;
246
247 bool m_isAttachable{false};
248
249 Aws::String m_path;
250
251 int m_permissionsBoundaryUsageCount{0};
252
253 Aws::String m_policyId;
254
255 Aws::String m_policyName;
256
257 Aws::Vector<AwsIamPolicyVersion> m_policyVersionList;
258
259 Aws::String m_updateDate;
260 bool m_attachmentCountHasBeenSet = false;
261 bool m_createDateHasBeenSet = false;
262 bool m_defaultVersionIdHasBeenSet = false;
263 bool m_descriptionHasBeenSet = false;
264 bool m_isAttachableHasBeenSet = false;
265 bool m_pathHasBeenSet = false;
266 bool m_permissionsBoundaryUsageCountHasBeenSet = false;
267 bool m_policyIdHasBeenSet = false;
268 bool m_policyNameHasBeenSet = false;
269 bool m_policyVersionListHasBeenSet = false;
270 bool m_updateDateHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace SecurityHub
275} // namespace Aws
AwsIamPolicyDetails & WithCreateDate(CreateDateT &&value)
AwsIamPolicyDetails & WithPolicyVersionList(PolicyVersionListT &&value)
AwsIamPolicyDetails & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API AwsIamPolicyDetails()=default
AwsIamPolicyDetails & WithUpdateDate(UpdateDateT &&value)
AWS_SECURITYHUB_API AwsIamPolicyDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamPolicyDetails & WithPermissionsBoundaryUsageCount(int value)
AwsIamPolicyDetails & WithAttachmentCount(int value)
const Aws::Vector< AwsIamPolicyVersion > & GetPolicyVersionList() const
AwsIamPolicyDetails & AddPolicyVersionList(PolicyVersionListT &&value)
void SetDefaultVersionId(DefaultVersionIdT &&value)
AWS_SECURITYHUB_API AwsIamPolicyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsIamPolicyDetails & WithPolicyId(PolicyIdT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicyVersionList(PolicyVersionListT &&value)
AwsIamPolicyDetails & WithPath(PathT &&value)
AwsIamPolicyDetails & WithPolicyName(PolicyNameT &&value)
AwsIamPolicyDetails & WithIsAttachable(bool value)
AwsIamPolicyDetails & WithDefaultVersionId(DefaultVersionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue