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-docdb/source/model/DescribeDBClusterSnapshotsRequest.cpp

86 lines
2.1 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/docdb/model/DescribeDBClusterSnapshotsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::DocDB::Model;
using namespace Aws::Utils;
DescribeDBClusterSnapshotsRequest::DescribeDBClusterSnapshotsRequest() :
m_dBClusterIdentifierHasBeenSet(false),
m_dBClusterSnapshotIdentifierHasBeenSet(false),
m_snapshotTypeHasBeenSet(false),
m_filtersHasBeenSet(false),
m_maxRecords(0),
m_maxRecordsHasBeenSet(false),
m_markerHasBeenSet(false),
m_includeShared(false),
m_includeSharedHasBeenSet(false),
m_includePublic(false),
m_includePublicHasBeenSet(false)
{
}
Aws::String DescribeDBClusterSnapshotsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeDBClusterSnapshots&";
if(m_dBClusterIdentifierHasBeenSet)
{
ss << "DBClusterIdentifier=" << StringUtils::URLEncode(m_dBClusterIdentifier.c_str()) << "&";
}
if(m_dBClusterSnapshotIdentifierHasBeenSet)
{
ss << "DBClusterSnapshotIdentifier=" << StringUtils::URLEncode(m_dBClusterSnapshotIdentifier.c_str()) << "&";
}
if(m_snapshotTypeHasBeenSet)
{
ss << "SnapshotType=" << StringUtils::URLEncode(m_snapshotType.c_str()) << "&";
}
if(m_filtersHasBeenSet)
{
unsigned filtersCount = 1;
for(auto& item : m_filters)
{
item.OutputToStream(ss, "Filters.member.", filtersCount, "");
filtersCount++;
}
}
if(m_maxRecordsHasBeenSet)
{
ss << "MaxRecords=" << m_maxRecords << "&";
}
if(m_markerHasBeenSet)
{
ss << "Marker=" << StringUtils::URLEncode(m_marker.c_str()) << "&";
}
if(m_includeSharedHasBeenSet)
{
ss << "IncludeShared=" << std::boolalpha << m_includeShared << "&";
}
if(m_includePublicHasBeenSet)
{
ss << "IncludePublic=" << std::boolalpha << m_includePublic << "&";
}
ss << "Version=2014-10-31";
return ss.str();
}
void DescribeDBClusterSnapshotsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}