68 lines
1.7 KiB
C++
68 lines
1.7 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/elasticache/model/DescribeCacheEngineVersionsRequest.h>
|
|||
|
|
#include <aws/core/utils/StringUtils.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|||
|
|
|
|||
|
|
using namespace Aws::ElastiCache::Model;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
DescribeCacheEngineVersionsRequest::DescribeCacheEngineVersionsRequest() :
|
|||
|
|
m_engineHasBeenSet(false),
|
|||
|
|
m_engineVersionHasBeenSet(false),
|
|||
|
|
m_cacheParameterGroupFamilyHasBeenSet(false),
|
|||
|
|
m_maxRecords(0),
|
|||
|
|
m_maxRecordsHasBeenSet(false),
|
|||
|
|
m_markerHasBeenSet(false),
|
|||
|
|
m_defaultOnly(false),
|
|||
|
|
m_defaultOnlyHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::String DescribeCacheEngineVersionsRequest::SerializePayload() const
|
|||
|
|
{
|
|||
|
|
Aws::StringStream ss;
|
|||
|
|
ss << "Action=DescribeCacheEngineVersions&";
|
|||
|
|
if(m_engineHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "Engine=" << StringUtils::URLEncode(m_engine.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_engineVersionHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "EngineVersion=" << StringUtils::URLEncode(m_engineVersion.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_cacheParameterGroupFamilyHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "CacheParameterGroupFamily=" << StringUtils::URLEncode(m_cacheParameterGroupFamily.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_maxRecordsHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "MaxRecords=" << m_maxRecords << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_markerHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "Marker=" << StringUtils::URLEncode(m_marker.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_defaultOnlyHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "DefaultOnly=" << std::boolalpha << m_defaultOnly << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
ss << "Version=2015-02-02";
|
|||
|
|
return ss.str();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
void DescribeCacheEngineVersionsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|||
|
|
{
|
|||
|
|
uri.SetQueryString(SerializePayload());
|
|||
|
|
}
|