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/DescribeSnapshotsRequest.cpp

74 lines
1.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elasticache/model/DescribeSnapshotsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::ElastiCache::Model;
using namespace Aws::Utils;
DescribeSnapshotsRequest::DescribeSnapshotsRequest() :
m_replicationGroupIdHasBeenSet(false),
m_cacheClusterIdHasBeenSet(false),
m_snapshotNameHasBeenSet(false),
m_snapshotSourceHasBeenSet(false),
m_markerHasBeenSet(false),
m_maxRecords(0),
m_maxRecordsHasBeenSet(false),
m_showNodeGroupConfig(false),
m_showNodeGroupConfigHasBeenSet(false)
{
}
Aws::String DescribeSnapshotsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeSnapshots&";
if(m_replicationGroupIdHasBeenSet)
{
ss << "ReplicationGroupId=" << StringUtils::URLEncode(m_replicationGroupId.c_str()) << "&";
}
if(m_cacheClusterIdHasBeenSet)
{
ss << "CacheClusterId=" << StringUtils::URLEncode(m_cacheClusterId.c_str()) << "&";
}
if(m_snapshotNameHasBeenSet)
{
ss << "SnapshotName=" << StringUtils::URLEncode(m_snapshotName.c_str()) << "&";
}
if(m_snapshotSourceHasBeenSet)
{
ss << "SnapshotSource=" << StringUtils::URLEncode(m_snapshotSource.c_str()) << "&";
}
if(m_markerHasBeenSet)
{
ss << "Marker=" << StringUtils::URLEncode(m_marker.c_str()) << "&";
}
if(m_maxRecordsHasBeenSet)
{
ss << "MaxRecords=" << m_maxRecords << "&";
}
if(m_showNodeGroupConfigHasBeenSet)
{
ss << "ShowNodeGroupConfig=" << std::boolalpha << m_showNodeGroupConfig << "&";
}
ss << "Version=2015-02-02";
return ss.str();
}
void DescribeSnapshotsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}