7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iam/IAMRequest.h>
10#include <aws/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/Tag.h>
46 template <
typename PolicyNameT = Aws::String>
48 m_policyNameHasBeenSet =
true;
49 m_policyName = std::forward<PolicyNameT>(value);
51 template <
typename PolicyNameT = Aws::String>
74 template <
typename PathT = Aws::String>
76 m_pathHasBeenSet =
true;
77 m_path = std::forward<PathT>(value);
79 template <
typename PathT = Aws::String>
81 SetPath(std::forward<PathT>(value));
112 template <
typename PolicyDocumentT = Aws::String>
114 m_policyDocumentHasBeenSet =
true;
115 m_policyDocument = std::forward<PolicyDocumentT>(value);
117 template <
typename PolicyDocumentT = Aws::String>
133 template <
typename DescriptionT = Aws::String>
135 m_descriptionHasBeenSet =
true;
136 m_description = std::forward<DescriptionT>(value);
138 template <
typename DescriptionT = Aws::String>
157 template <
typename TagsT = Aws::Vector<Tag>>
159 m_tagsHasBeenSet =
true;
160 m_tags = std::forward<TagsT>(value);
162 template <
typename TagsT = Aws::Vector<Tag>>
164 SetTags(std::forward<TagsT>(value));
167 template <
typename TagsT = Tag>
169 m_tagsHasBeenSet =
true;
170 m_tags.emplace_back(std::forward<TagsT>(value));
184 bool m_policyNameHasBeenSet =
false;
185 bool m_pathHasBeenSet =
false;
186 bool m_policyDocumentHasBeenSet =
false;
187 bool m_descriptionHasBeenSet =
false;
188 bool m_tagsHasBeenSet =
false;
CreatePolicyRequest & WithDescription(DescriptionT &&value)
CreatePolicyRequest & WithPolicyDocument(PolicyDocumentT &&value)
void SetPolicyName(PolicyNameT &&value)
virtual const char * GetServiceRequestName() const override
CreatePolicyRequest & WithPath(PathT &&value)
CreatePolicyRequest & WithPolicyName(PolicyNameT &&value)
void SetPath(PathT &&value)
const Aws::String & GetPolicyName() const
bool TagsHasBeenSet() const
CreatePolicyRequest & WithTags(TagsT &&value)
AWS_IAM_API CreatePolicyRequest()=default
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetPolicyDocument() const
bool PolicyNameHasBeenSet() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetPath() const
bool DescriptionHasBeenSet() const
const Aws::String & GetDescription() const
bool PathHasBeenSet() const
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_IAM_API Aws::String SerializePayload() const override
void SetTags(TagsT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
CreatePolicyRequest & AddTags(TagsT &&value)
bool PolicyDocumentHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector