AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsIamPolicyDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsIamPolicyVersion.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 SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API AwsIamPolicyDetails();
37 AWS_SECURITYHUB_API AwsIamPolicyDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetAttachmentCount() const{ return m_attachmentCount; }
47 inline bool AttachmentCountHasBeenSet() const { return m_attachmentCountHasBeenSet; }
48 inline void SetAttachmentCount(int value) { m_attachmentCountHasBeenSet = true; m_attachmentCount = value; }
49 inline AwsIamPolicyDetails& WithAttachmentCount(int value) { SetAttachmentCount(value); return *this;}
51
53
69 inline const Aws::String& GetCreateDate() const{ return m_createDate; }
70 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
71 inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; }
72 inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
73 inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); }
74 inline AwsIamPolicyDetails& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;}
75 inline AwsIamPolicyDetails& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;}
76 inline AwsIamPolicyDetails& WithCreateDate(const char* value) { SetCreateDate(value); return *this;}
78
80
83 inline const Aws::String& GetDefaultVersionId() const{ return m_defaultVersionId; }
84 inline bool DefaultVersionIdHasBeenSet() const { return m_defaultVersionIdHasBeenSet; }
85 inline void SetDefaultVersionId(const Aws::String& value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = value; }
86 inline void SetDefaultVersionId(Aws::String&& value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = std::move(value); }
87 inline void SetDefaultVersionId(const char* value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId.assign(value); }
88 inline AwsIamPolicyDetails& WithDefaultVersionId(const Aws::String& value) { SetDefaultVersionId(value); return *this;}
89 inline AwsIamPolicyDetails& WithDefaultVersionId(Aws::String&& value) { SetDefaultVersionId(std::move(value)); return *this;}
90 inline AwsIamPolicyDetails& WithDefaultVersionId(const char* value) { SetDefaultVersionId(value); return *this;}
92
94
97 inline const Aws::String& GetDescription() const{ return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
100 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 inline AwsIamPolicyDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
103 inline AwsIamPolicyDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
104 inline AwsIamPolicyDetails& WithDescription(const char* value) { SetDescription(value); return *this;}
106
108
111 inline bool GetIsAttachable() const{ return m_isAttachable; }
112 inline bool IsAttachableHasBeenSet() const { return m_isAttachableHasBeenSet; }
113 inline void SetIsAttachable(bool value) { m_isAttachableHasBeenSet = true; m_isAttachable = value; }
114 inline AwsIamPolicyDetails& WithIsAttachable(bool value) { SetIsAttachable(value); return *this;}
116
118
121 inline const Aws::String& GetPath() const{ return m_path; }
122 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
123 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
124 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
125 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
126 inline AwsIamPolicyDetails& WithPath(const Aws::String& value) { SetPath(value); return *this;}
127 inline AwsIamPolicyDetails& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
128 inline AwsIamPolicyDetails& WithPath(const char* value) { SetPath(value); return *this;}
130
132
136 inline int GetPermissionsBoundaryUsageCount() const{ return m_permissionsBoundaryUsageCount; }
137 inline bool PermissionsBoundaryUsageCountHasBeenSet() const { return m_permissionsBoundaryUsageCountHasBeenSet; }
138 inline void SetPermissionsBoundaryUsageCount(int value) { m_permissionsBoundaryUsageCountHasBeenSet = true; m_permissionsBoundaryUsageCount = value; }
141
143
146 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
147 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
148 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
149 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
150 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
151 inline AwsIamPolicyDetails& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
152 inline AwsIamPolicyDetails& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
153 inline AwsIamPolicyDetails& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
155
157
160 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
161 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
162 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
163 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
164 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
165 inline AwsIamPolicyDetails& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
166 inline AwsIamPolicyDetails& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
167 inline AwsIamPolicyDetails& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
169
171
174 inline const Aws::Vector<AwsIamPolicyVersion>& GetPolicyVersionList() const{ return m_policyVersionList; }
175 inline bool PolicyVersionListHasBeenSet() const { return m_policyVersionListHasBeenSet; }
176 inline void SetPolicyVersionList(const Aws::Vector<AwsIamPolicyVersion>& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList = value; }
177 inline void SetPolicyVersionList(Aws::Vector<AwsIamPolicyVersion>&& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList = std::move(value); }
180 inline AwsIamPolicyDetails& AddPolicyVersionList(const AwsIamPolicyVersion& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList.push_back(value); return *this; }
181 inline AwsIamPolicyDetails& AddPolicyVersionList(AwsIamPolicyVersion&& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList.push_back(std::move(value)); return *this; }
183
185
202 inline const Aws::String& GetUpdateDate() const{ return m_updateDate; }
203 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
204 inline void SetUpdateDate(const Aws::String& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
205 inline void SetUpdateDate(Aws::String&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
206 inline void SetUpdateDate(const char* value) { m_updateDateHasBeenSet = true; m_updateDate.assign(value); }
207 inline AwsIamPolicyDetails& WithUpdateDate(const Aws::String& value) { SetUpdateDate(value); return *this;}
208 inline AwsIamPolicyDetails& WithUpdateDate(Aws::String&& value) { SetUpdateDate(std::move(value)); return *this;}
209 inline AwsIamPolicyDetails& WithUpdateDate(const char* value) { SetUpdateDate(value); return *this;}
211 private:
212
213 int m_attachmentCount;
214 bool m_attachmentCountHasBeenSet = false;
215
216 Aws::String m_createDate;
217 bool m_createDateHasBeenSet = false;
218
219 Aws::String m_defaultVersionId;
220 bool m_defaultVersionIdHasBeenSet = false;
221
222 Aws::String m_description;
223 bool m_descriptionHasBeenSet = false;
224
225 bool m_isAttachable;
226 bool m_isAttachableHasBeenSet = false;
227
228 Aws::String m_path;
229 bool m_pathHasBeenSet = false;
230
231 int m_permissionsBoundaryUsageCount;
232 bool m_permissionsBoundaryUsageCountHasBeenSet = false;
233
234 Aws::String m_policyId;
235 bool m_policyIdHasBeenSet = false;
236
237 Aws::String m_policyName;
238 bool m_policyNameHasBeenSet = false;
239
240 Aws::Vector<AwsIamPolicyVersion> m_policyVersionList;
241 bool m_policyVersionListHasBeenSet = false;
242
243 Aws::String m_updateDate;
244 bool m_updateDateHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace SecurityHub
249} // namespace Aws
AwsIamPolicyDetails & WithPolicyId(Aws::String &&value)
AwsIamPolicyDetails & WithPolicyId(const char *value)
AwsIamPolicyDetails & WithDescription(const Aws::String &value)
AwsIamPolicyDetails & WithUpdateDate(const Aws::String &value)
AwsIamPolicyDetails & WithCreateDate(Aws::String &&value)
AwsIamPolicyDetails & AddPolicyVersionList(const AwsIamPolicyVersion &value)
AwsIamPolicyDetails & WithUpdateDate(Aws::String &&value)
void SetPolicyVersionList(const Aws::Vector< AwsIamPolicyVersion > &value)
void SetPolicyVersionList(Aws::Vector< AwsIamPolicyVersion > &&value)
AwsIamPolicyDetails & WithPath(const Aws::String &value)
AwsIamPolicyDetails & WithDescription(const char *value)
AwsIamPolicyDetails & WithCreateDate(const char *value)
AwsIamPolicyDetails & WithPolicyName(Aws::String &&value)
AwsIamPolicyDetails & AddPolicyVersionList(AwsIamPolicyVersion &&value)
AwsIamPolicyDetails & WithDefaultVersionId(const Aws::String &value)
AWS_SECURITYHUB_API AwsIamPolicyDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamPolicyDetails & WithPermissionsBoundaryUsageCount(int value)
AwsIamPolicyDetails & WithPolicyId(const Aws::String &value)
AwsIamPolicyDetails & WithAttachmentCount(int value)
const Aws::Vector< AwsIamPolicyVersion > & GetPolicyVersionList() const
AwsIamPolicyDetails & WithPath(Aws::String &&value)
AwsIamPolicyDetails & WithDefaultVersionId(const char *value)
void SetDescription(const Aws::String &value)
AwsIamPolicyDetails & WithDescription(Aws::String &&value)
AwsIamPolicyDetails & WithCreateDate(const Aws::String &value)
AWS_SECURITYHUB_API AwsIamPolicyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsIamPolicyDetails & WithPolicyVersionList(Aws::Vector< AwsIamPolicyVersion > &&value)
AwsIamPolicyDetails & WithPolicyName(const char *value)
AwsIamPolicyDetails & WithPolicyName(const Aws::String &value)
AwsIamPolicyDetails & WithPath(const char *value)
AwsIamPolicyDetails & WithDefaultVersionId(Aws::String &&value)
AwsIamPolicyDetails & WithUpdateDate(const char *value)
void SetDefaultVersionId(const Aws::String &value)
AwsIamPolicyDetails & WithIsAttachable(bool value)
AwsIamPolicyDetails & WithPolicyVersionList(const Aws::Vector< AwsIamPolicyVersion > &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