This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-elasticache/source/model/DescribeReservedCacheNodesRequest.cpp

79 lines
2.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elasticache/model/DescribeReservedCacheNodesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::ElastiCache::Model;
using namespace Aws::Utils;
DescribeReservedCacheNodesRequest::DescribeReservedCacheNodesRequest() :
m_reservedCacheNodeIdHasBeenSet(false),
m_reservedCacheNodesOfferingIdHasBeenSet(false),
m_cacheNodeTypeHasBeenSet(false),
m_durationHasBeenSet(false),
m_productDescriptionHasBeenSet(false),
m_offeringTypeHasBeenSet(false),
m_maxRecords(0),
m_maxRecordsHasBeenSet(false),
m_markerHasBeenSet(false)
{
}
Aws::String DescribeReservedCacheNodesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeReservedCacheNodes&";
if(m_reservedCacheNodeIdHasBeenSet)
{
ss << "ReservedCacheNodeId=" << StringUtils::URLEncode(m_reservedCacheNodeId.c_str()) << "&";
}
if(m_reservedCacheNodesOfferingIdHasBeenSet)
{
ss << "ReservedCacheNodesOfferingId=" << StringUtils::URLEncode(m_reservedCacheNodesOfferingId.c_str()) << "&";
}
if(m_cacheNodeTypeHasBeenSet)
{
ss << "CacheNodeType=" << StringUtils::URLEncode(m_cacheNodeType.c_str()) << "&";
}
if(m_durationHasBeenSet)
{
ss << "Duration=" << StringUtils::URLEncode(m_duration.c_str()) << "&";
}
if(m_productDescriptionHasBeenSet)
{
ss << "ProductDescription=" << StringUtils::URLEncode(m_productDescription.c_str()) << "&";
}
if(m_offeringTypeHasBeenSet)
{
ss << "OfferingType=" << StringUtils::URLEncode(m_offeringType.c_str()) << "&";
}
if(m_maxRecordsHasBeenSet)
{
ss << "MaxRecords=" << m_maxRecords << "&";
}
if(m_markerHasBeenSet)
{
ss << "Marker=" << StringUtils::URLEncode(m_marker.c_str()) << "&";
}
ss << "Version=2015-02-02";
return ss.str();
}
void DescribeReservedCacheNodesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}