/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::EC2::Model; using namespace Aws::Utils; ReleaseIpamPoolAllocationRequest::ReleaseIpamPoolAllocationRequest() : m_dryRun(false), m_dryRunHasBeenSet(false), m_ipamPoolIdHasBeenSet(false), m_cidrHasBeenSet(false), m_ipamPoolAllocationIdHasBeenSet(false) { } Aws::String ReleaseIpamPoolAllocationRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ReleaseIpamPoolAllocation&"; if(m_dryRunHasBeenSet) { ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; } if(m_ipamPoolIdHasBeenSet) { ss << "IpamPoolId=" << StringUtils::URLEncode(m_ipamPoolId.c_str()) << "&"; } if(m_cidrHasBeenSet) { ss << "Cidr=" << StringUtils::URLEncode(m_cidr.c_str()) << "&"; } if(m_ipamPoolAllocationIdHasBeenSet) { ss << "IpamPoolAllocationId=" << StringUtils::URLEncode(m_ipamPoolAllocationId.c_str()) << "&"; } ss << "Version=2016-11-15"; return ss.str(); } void ReleaseIpamPoolAllocationRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }