/** * 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; AddRoleToInstanceProfileRequest::AddRoleToInstanceProfileRequest() : m_instanceProfileNameHasBeenSet(false), m_roleNameHasBeenSet(false) { } Aws::String AddRoleToInstanceProfileRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=AddRoleToInstanceProfile&"; if(m_instanceProfileNameHasBeenSet) { ss << "InstanceProfileName=" << StringUtils::URLEncode(m_instanceProfileName.c_str()) << "&"; } if(m_roleNameHasBeenSet) { ss << "RoleName=" << StringUtils::URLEncode(m_roleName.c_str()) << "&"; } ss << "Version=2010-05-08"; return ss.str(); } void AddRoleToInstanceProfileRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }