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/Tag.h>
61 template<
typename PolicyNameT = Aws::String>
62 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet =
true; m_policyName = std::forward<PolicyNameT>(value); }
63 template<
typename PolicyNameT = Aws::String>
76 template<
typename PolicyIdT = Aws::String>
77 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet =
true; m_policyId = std::forward<PolicyIdT>(value); }
78 template<
typename PolicyIdT = Aws::String>
86 template<
typename ArnT = Aws::String>
87 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
88 template<
typename ArnT = Aws::String>
100 template<
typename PathT = Aws::String>
101 void SetPath(PathT&& value) { m_pathHasBeenSet =
true; m_path = std::forward<PathT>(value); }
102 template<
typename PathT = Aws::String>
113 template<
typename DefaultVersionIdT = Aws::String>
114 void SetDefaultVersionId(DefaultVersionIdT&& value) { m_defaultVersionIdHasBeenSet =
true; m_defaultVersionId = std::forward<DefaultVersionIdT>(value); }
115 template<
typename DefaultVersionIdT = Aws::String>
126 inline void SetAttachmentCount(
int value) { m_attachmentCountHasBeenSet =
true; m_attachmentCount = value; }
151 inline void SetIsAttachable(
bool value) { m_isAttachableHasBeenSet =
true; m_isAttachable = value; }
166 template<
typename DescriptionT = Aws::String>
167 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
168 template<
typename DescriptionT = Aws::String>
179 template<
typename CreateDateT = Aws::Utils::DateTime>
180 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet =
true; m_createDate = std::forward<CreateDateT>(value); }
181 template<
typename CreateDateT = Aws::Utils::DateTime>
195 template<
typename UpdateDateT = Aws::Utils::DateTime>
196 void SetUpdateDate(UpdateDateT&& value) { m_updateDateHasBeenSet =
true; m_updateDate = std::forward<UpdateDateT>(value); }
197 template<
typename UpdateDateT = Aws::Utils::DateTime>
210 template<
typename TagsT = Aws::Vector<Tag>>
211 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
212 template<
typename TagsT = Aws::Vector<Tag>>
214 template<
typename TagsT = Tag>
215 Policy&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
220 bool m_policyNameHasBeenSet =
false;
223 bool m_policyIdHasBeenSet =
false;
226 bool m_arnHasBeenSet =
false;
229 bool m_pathHasBeenSet =
false;
232 bool m_defaultVersionIdHasBeenSet =
false;
234 int m_attachmentCount{0};
235 bool m_attachmentCountHasBeenSet =
false;
237 int m_permissionsBoundaryUsageCount{0};
238 bool m_permissionsBoundaryUsageCountHasBeenSet =
false;
240 bool m_isAttachable{
false};
241 bool m_isAttachableHasBeenSet =
false;
244 bool m_descriptionHasBeenSet =
false;
247 bool m_createDateHasBeenSet =
false;
250 bool m_updateDateHasBeenSet =
false;
253 bool m_tagsHasBeenSet =
false;
void SetCreateDate(CreateDateT &&value)
Policy & WithPermissionsBoundaryUsageCount(int value)
int GetAttachmentCount() const
void SetDescription(DescriptionT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDefaultVersionId() const
Policy & WithTags(TagsT &&value)
Policy & WithPath(PathT &&value)
Policy & WithIsAttachable(bool value)
const Aws::String & GetPolicyName() const
bool PermissionsBoundaryUsageCountHasBeenSet() const
bool GetIsAttachable() const
const Aws::Utils::DateTime & GetUpdateDate() const
bool PolicyNameHasBeenSet() const
Policy & WithPolicyId(PolicyIdT &&value)
AWS_IAM_API Policy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPolicyName(PolicyNameT &&value)
bool PathHasBeenSet() const
bool CreateDateHasBeenSet() const
bool DefaultVersionIdHasBeenSet() const
void SetPolicyId(PolicyIdT &&value)
bool UpdateDateHasBeenSet() const
void SetDefaultVersionId(DefaultVersionIdT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Policy & WithDefaultVersionId(DefaultVersionIdT &&value)
Policy & WithArn(ArnT &&value)
void SetAttachmentCount(int value)
bool TagsHasBeenSet() const
void SetTags(TagsT &&value)
Policy & WithAttachmentCount(int value)
void SetArn(ArnT &&value)
AWS_IAM_API Policy(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ArnHasBeenSet() const
void SetPermissionsBoundaryUsageCount(int value)
const Aws::Utils::DateTime & GetCreateDate() const
void SetPath(PathT &&value)
void SetUpdateDate(UpdateDateT &&value)
Policy & WithDescription(DescriptionT &&value)
Policy & WithPolicyName(PolicyNameT &&value)
bool DescriptionHasBeenSet() const
int GetPermissionsBoundaryUsageCount() const
Policy & WithCreateDate(CreateDateT &&value)
const Aws::String & GetDescription() const
AWS_IAM_API Policy()=default
const Aws::String & GetPolicyId() const
void SetIsAttachable(bool value)
bool PolicyIdHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
Policy & AddTags(TagsT &&value)
bool AttachmentCountHasBeenSet() const
const Aws::String & GetArn() const
Policy & WithUpdateDate(UpdateDateT &&value)
const Aws::String & GetPath() const
bool IsAttachableHasBeenSet() const
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