7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
45 template <
typename RoleNameT = Aws::String>
47 m_roleNameHasBeenSet =
true;
48 m_roleName = std::forward<RoleNameT>(value);
50 template <
typename RoleNameT = Aws::String>
67 template <
typename PolicyArnT = Aws::String>
69 m_policyArnHasBeenSet =
true;
70 m_policyArn = std::forward<PolicyArnT>(value);
72 template <
typename PolicyArnT = Aws::String>
82 bool m_roleNameHasBeenSet =
false;
83 bool m_policyArnHasBeenSet =
false;
const Aws::String & GetRoleName() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetPolicyArn() const
void SetRoleName(RoleNameT &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_IAM_API AttachRolePolicyRequest()=default
AttachRolePolicyRequest & WithPolicyArn(PolicyArnT &&value)
void SetPolicyArn(PolicyArnT &&value)
bool PolicyArnHasBeenSet() const
AttachRolePolicyRequest & WithRoleName(RoleNameT &&value)
AWS_IAM_API Aws::String SerializePayload() const override
bool RoleNameHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String