/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::IAM::Model; using namespace Aws::Utils; GetRolePolicyRequest::GetRolePolicyRequest() : m_roleNameHasBeenSet(false), m_policyNameHasBeenSet(false) { } Aws::String GetRolePolicyRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=GetRolePolicy&"; if(m_roleNameHasBeenSet) { ss << "RoleName=" << StringUtils::URLEncode(m_roleName.c_str()) << "&"; } if(m_policyNameHasBeenSet) { ss << "PolicyName=" << StringUtils::URLEncode(m_policyName.c_str()) << "&"; } ss << "Version=2010-05-08"; return ss.str(); } void GetRolePolicyRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }