AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedPolicyDetail.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iam/model/PolicyVersion.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace IAM
25{
26namespace Model
27{
28
42 {
43 public:
44 AWS_IAM_API ManagedPolicyDetail();
45 AWS_IAM_API ManagedPolicyDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
56 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
57 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
58 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
59 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
60 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
61 inline ManagedPolicyDetail& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
62 inline ManagedPolicyDetail& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
63 inline ManagedPolicyDetail& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
65
67
73 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
74 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
75 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
76 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
77 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
78 inline ManagedPolicyDetail& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
79 inline ManagedPolicyDetail& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
80 inline ManagedPolicyDetail& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
82
84
85 inline const Aws::String& GetArn() const{ return m_arn; }
86 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
87 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
88 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
89 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
90 inline ManagedPolicyDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
91 inline ManagedPolicyDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
92 inline ManagedPolicyDetail& WithArn(const char* value) { SetArn(value); return *this;}
94
96
101 inline const Aws::String& GetPath() const{ return m_path; }
102 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
103 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
104 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
105 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
106 inline ManagedPolicyDetail& WithPath(const Aws::String& value) { SetPath(value); return *this;}
107 inline ManagedPolicyDetail& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
108 inline ManagedPolicyDetail& WithPath(const char* value) { SetPath(value); return *this;}
110
112
118 inline const Aws::String& GetDefaultVersionId() const{ return m_defaultVersionId; }
119 inline bool DefaultVersionIdHasBeenSet() const { return m_defaultVersionIdHasBeenSet; }
120 inline void SetDefaultVersionId(const Aws::String& value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = value; }
121 inline void SetDefaultVersionId(Aws::String&& value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = std::move(value); }
122 inline void SetDefaultVersionId(const char* value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId.assign(value); }
123 inline ManagedPolicyDetail& WithDefaultVersionId(const Aws::String& value) { SetDefaultVersionId(value); return *this;}
124 inline ManagedPolicyDetail& WithDefaultVersionId(Aws::String&& value) { SetDefaultVersionId(std::move(value)); return *this;}
125 inline ManagedPolicyDetail& WithDefaultVersionId(const char* value) { SetDefaultVersionId(value); return *this;}
127
129
133 inline int GetAttachmentCount() const{ return m_attachmentCount; }
134 inline bool AttachmentCountHasBeenSet() const { return m_attachmentCountHasBeenSet; }
135 inline void SetAttachmentCount(int value) { m_attachmentCountHasBeenSet = true; m_attachmentCount = value; }
136 inline ManagedPolicyDetail& WithAttachmentCount(int value) { SetAttachmentCount(value); return *this;}
138
140
147 inline int GetPermissionsBoundaryUsageCount() const{ return m_permissionsBoundaryUsageCount; }
148 inline bool PermissionsBoundaryUsageCountHasBeenSet() const { return m_permissionsBoundaryUsageCountHasBeenSet; }
149 inline void SetPermissionsBoundaryUsageCount(int value) { m_permissionsBoundaryUsageCountHasBeenSet = true; m_permissionsBoundaryUsageCount = value; }
152
154
158 inline bool GetIsAttachable() const{ return m_isAttachable; }
159 inline bool IsAttachableHasBeenSet() const { return m_isAttachableHasBeenSet; }
160 inline void SetIsAttachable(bool value) { m_isAttachableHasBeenSet = true; m_isAttachable = value; }
161 inline ManagedPolicyDetail& WithIsAttachable(bool value) { SetIsAttachable(value); return *this;}
163
165
168 inline const Aws::String& GetDescription() const{ return m_description; }
169 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
170 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
171 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
172 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
173 inline ManagedPolicyDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
174 inline ManagedPolicyDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
175 inline ManagedPolicyDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
177
179
183 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
184 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
185 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
186 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
187 inline ManagedPolicyDetail& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
188 inline ManagedPolicyDetail& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
190
192
199 inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
200 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
201 inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
202 inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
203 inline ManagedPolicyDetail& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
204 inline ManagedPolicyDetail& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;}
206
208
211 inline const Aws::Vector<PolicyVersion>& GetPolicyVersionList() const{ return m_policyVersionList; }
212 inline bool PolicyVersionListHasBeenSet() const { return m_policyVersionListHasBeenSet; }
213 inline void SetPolicyVersionList(const Aws::Vector<PolicyVersion>& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList = value; }
214 inline void SetPolicyVersionList(Aws::Vector<PolicyVersion>&& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList = std::move(value); }
217 inline ManagedPolicyDetail& AddPolicyVersionList(const PolicyVersion& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList.push_back(value); return *this; }
218 inline ManagedPolicyDetail& AddPolicyVersionList(PolicyVersion&& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList.push_back(std::move(value)); return *this; }
220 private:
221
222 Aws::String m_policyName;
223 bool m_policyNameHasBeenSet = false;
224
225 Aws::String m_policyId;
226 bool m_policyIdHasBeenSet = false;
227
228 Aws::String m_arn;
229 bool m_arnHasBeenSet = false;
230
231 Aws::String m_path;
232 bool m_pathHasBeenSet = false;
233
234 Aws::String m_defaultVersionId;
235 bool m_defaultVersionIdHasBeenSet = false;
236
237 int m_attachmentCount;
238 bool m_attachmentCountHasBeenSet = false;
239
240 int m_permissionsBoundaryUsageCount;
241 bool m_permissionsBoundaryUsageCountHasBeenSet = false;
242
243 bool m_isAttachable;
244 bool m_isAttachableHasBeenSet = false;
245
246 Aws::String m_description;
247 bool m_descriptionHasBeenSet = false;
248
249 Aws::Utils::DateTime m_createDate;
250 bool m_createDateHasBeenSet = false;
251
252 Aws::Utils::DateTime m_updateDate;
253 bool m_updateDateHasBeenSet = false;
254
255 Aws::Vector<PolicyVersion> m_policyVersionList;
256 bool m_policyVersionListHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace IAM
261} // namespace Aws
ManagedPolicyDetail & WithPolicyId(const Aws::String &value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ManagedPolicyDetail & WithPath(const Aws::String &value)
void SetArn(const Aws::String &value)
void SetPolicyId(const Aws::String &value)
void SetDescription(const Aws::String &value)
ManagedPolicyDetail & AddPolicyVersionList(const PolicyVersion &value)
ManagedPolicyDetail & WithPolicyName(const Aws::String &value)
void SetPolicyVersionList(const Aws::Vector< PolicyVersion > &value)
ManagedPolicyDetail & WithPolicyName(Aws::String &&value)
ManagedPolicyDetail & AddPolicyVersionList(PolicyVersion &&value)
const Aws::String & GetDescription() const
void SetUpdateDate(const Aws::Utils::DateTime &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
ManagedPolicyDetail & WithDescription(const char *value)
const Aws::Vector< PolicyVersion > & GetPolicyVersionList() const
ManagedPolicyDetail & WithArn(const Aws::String &value)
void SetDefaultVersionId(const Aws::String &value)
const Aws::Utils::DateTime & GetUpdateDate() const
void SetPolicyVersionList(Aws::Vector< PolicyVersion > &&value)
AWS_IAM_API ManagedPolicyDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
ManagedPolicyDetail & WithPath(const char *value)
const Aws::String & GetDefaultVersionId() const
void SetPolicyName(const Aws::String &value)
ManagedPolicyDetail & WithDescription(const Aws::String &value)
ManagedPolicyDetail & WithPolicyVersionList(Aws::Vector< PolicyVersion > &&value)
void SetPolicyName(Aws::String &&value)
ManagedPolicyDetail & WithUpdateDate(const Aws::Utils::DateTime &value)
ManagedPolicyDetail & WithPolicyName(const char *value)
ManagedPolicyDetail & WithPolicyVersionList(const Aws::Vector< PolicyVersion > &value)
void SetUpdateDate(Aws::Utils::DateTime &&value)
const Aws::String & GetPolicyId() const
void SetDefaultVersionId(Aws::String &&value)
ManagedPolicyDetail & WithUpdateDate(Aws::Utils::DateTime &&value)
ManagedPolicyDetail & WithDefaultVersionId(const Aws::String &value)
void SetPath(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateDate() const
ManagedPolicyDetail & WithDefaultVersionId(Aws::String &&value)
ManagedPolicyDetail & WithIsAttachable(bool value)
ManagedPolicyDetail & WithCreateDate(Aws::Utils::DateTime &&value)
ManagedPolicyDetail & WithArn(const char *value)
ManagedPolicyDetail & WithCreateDate(const Aws::Utils::DateTime &value)
ManagedPolicyDetail & WithDescription(Aws::String &&value)
ManagedPolicyDetail & WithPath(Aws::String &&value)
void SetCreateDate(Aws::Utils::DateTime &&value)
ManagedPolicyDetail & WithAttachmentCount(int value)
ManagedPolicyDetail & WithPermissionsBoundaryUsageCount(int value)
ManagedPolicyDetail & WithPolicyId(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ManagedPolicyDetail & WithDefaultVersionId(const char *value)
const Aws::String & GetPolicyName() const
AWS_IAM_API ManagedPolicyDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ManagedPolicyDetail & WithArn(Aws::String &&value)
ManagedPolicyDetail & WithPolicyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream