AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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
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) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
62 template<typename CreateDateT = Aws::String>
63 AwsIamPolicyDetails& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDefaultVersionId() const { return m_defaultVersionId; }
71 inline bool DefaultVersionIdHasBeenSet() const { return m_defaultVersionIdHasBeenSet; }
72 template<typename DefaultVersionIdT = Aws::String>
73 void SetDefaultVersionId(DefaultVersionIdT&& value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = std::forward<DefaultVersionIdT>(value); }
74 template<typename DefaultVersionIdT = Aws::String>
75 AwsIamPolicyDetails& WithDefaultVersionId(DefaultVersionIdT&& value) { SetDefaultVersionId(std::forward<DefaultVersionIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 AwsIamPolicyDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
94 inline bool GetIsAttachable() const { return m_isAttachable; }
95 inline bool IsAttachableHasBeenSet() const { return m_isAttachableHasBeenSet; }
96 inline void SetIsAttachable(bool value) { m_isAttachableHasBeenSet = true; m_isAttachable = value; }
97 inline AwsIamPolicyDetails& WithIsAttachable(bool value) { SetIsAttachable(value); return *this;}
99
101
104 inline const Aws::String& GetPath() const { return m_path; }
105 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
106 template<typename PathT = Aws::String>
107 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
108 template<typename PathT = Aws::String>
109 AwsIamPolicyDetails& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
111
113
117 inline int GetPermissionsBoundaryUsageCount() const { return m_permissionsBoundaryUsageCount; }
118 inline bool PermissionsBoundaryUsageCountHasBeenSet() const { return m_permissionsBoundaryUsageCountHasBeenSet; }
119 inline void SetPermissionsBoundaryUsageCount(int value) { m_permissionsBoundaryUsageCountHasBeenSet = true; m_permissionsBoundaryUsageCount = value; }
122
124
127 inline const Aws::String& GetPolicyId() const { return m_policyId; }
128 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
129 template<typename PolicyIdT = Aws::String>
130 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
131 template<typename PolicyIdT = Aws::String>
132 AwsIamPolicyDetails& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
134
136
139 inline const Aws::String& GetPolicyName() const { return m_policyName; }
140 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
141 template<typename PolicyNameT = Aws::String>
142 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
143 template<typename PolicyNameT = Aws::String>
144 AwsIamPolicyDetails& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
146
148
151 inline const Aws::Vector<AwsIamPolicyVersion>& GetPolicyVersionList() const { return m_policyVersionList; }
152 inline bool PolicyVersionListHasBeenSet() const { return m_policyVersionListHasBeenSet; }
153 template<typename PolicyVersionListT = Aws::Vector<AwsIamPolicyVersion>>
154 void SetPolicyVersionList(PolicyVersionListT&& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList = std::forward<PolicyVersionListT>(value); }
155 template<typename PolicyVersionListT = Aws::Vector<AwsIamPolicyVersion>>
156 AwsIamPolicyDetails& WithPolicyVersionList(PolicyVersionListT&& value) { SetPolicyVersionList(std::forward<PolicyVersionListT>(value)); return *this;}
157 template<typename PolicyVersionListT = AwsIamPolicyVersion>
158 AwsIamPolicyDetails& AddPolicyVersionList(PolicyVersionListT&& value) { m_policyVersionListHasBeenSet = true; m_policyVersionList.emplace_back(std::forward<PolicyVersionListT>(value)); return *this; }
160
162
167 inline const Aws::String& GetUpdateDate() const { return m_updateDate; }
168 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
169 template<typename UpdateDateT = Aws::String>
170 void SetUpdateDate(UpdateDateT&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::forward<UpdateDateT>(value); }
171 template<typename UpdateDateT = Aws::String>
172 AwsIamPolicyDetails& WithUpdateDate(UpdateDateT&& value) { SetUpdateDate(std::forward<UpdateDateT>(value)); return *this;}
174 private:
175
176 int m_attachmentCount{0};
177 bool m_attachmentCountHasBeenSet = false;
178
179 Aws::String m_createDate;
180 bool m_createDateHasBeenSet = false;
181
182 Aws::String m_defaultVersionId;
183 bool m_defaultVersionIdHasBeenSet = false;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
188 bool m_isAttachable{false};
189 bool m_isAttachableHasBeenSet = false;
190
191 Aws::String m_path;
192 bool m_pathHasBeenSet = false;
193
194 int m_permissionsBoundaryUsageCount{0};
195 bool m_permissionsBoundaryUsageCountHasBeenSet = false;
196
197 Aws::String m_policyId;
198 bool m_policyIdHasBeenSet = false;
199
200 Aws::String m_policyName;
201 bool m_policyNameHasBeenSet = false;
202
203 Aws::Vector<AwsIamPolicyVersion> m_policyVersionList;
204 bool m_policyVersionListHasBeenSet = false;
205
206 Aws::String m_updateDate;
207 bool m_updateDateHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace SecurityHub
212} // 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