61 lines
1.5 KiB
C++
61 lines
1.5 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/ec2/model/DeleteRouteRequest.h>
|
|||
|
|
#include <aws/core/utils/StringUtils.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|||
|
|
|
|||
|
|
using namespace Aws::EC2::Model;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
DeleteRouteRequest::DeleteRouteRequest() :
|
|||
|
|
m_destinationCidrBlockHasBeenSet(false),
|
|||
|
|
m_destinationIpv6CidrBlockHasBeenSet(false),
|
|||
|
|
m_destinationPrefixListIdHasBeenSet(false),
|
|||
|
|
m_dryRun(false),
|
|||
|
|
m_dryRunHasBeenSet(false),
|
|||
|
|
m_routeTableIdHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::String DeleteRouteRequest::SerializePayload() const
|
|||
|
|
{
|
|||
|
|
Aws::StringStream ss;
|
|||
|
|
ss << "Action=DeleteRoute&";
|
|||
|
|
if(m_destinationCidrBlockHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "DestinationCidrBlock=" << StringUtils::URLEncode(m_destinationCidrBlock.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_destinationIpv6CidrBlockHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "DestinationIpv6CidrBlock=" << StringUtils::URLEncode(m_destinationIpv6CidrBlock.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_destinationPrefixListIdHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "DestinationPrefixListId=" << StringUtils::URLEncode(m_destinationPrefixListId.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_dryRunHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "DryRun=" << std::boolalpha << m_dryRun << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_routeTableIdHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "RouteTableId=" << StringUtils::URLEncode(m_routeTableId.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
ss << "Version=2016-11-15";
|
|||
|
|
return ss.str();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
void DeleteRouteRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|||
|
|
{
|
|||
|
|
uri.SetQueryString(SerializePayload());
|
|||
|
|
}
|