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-redshift/source/model/DescribeSnapshotCopyGrantsRequest.cpp

73 lines
1.8 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/redshift/model/DescribeSnapshotCopyGrantsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::Redshift::Model;
using namespace Aws::Utils;
DescribeSnapshotCopyGrantsRequest::DescribeSnapshotCopyGrantsRequest() :
m_snapshotCopyGrantNameHasBeenSet(false),
m_maxRecords(0),
m_maxRecordsHasBeenSet(false),
m_markerHasBeenSet(false),
m_tagKeysHasBeenSet(false),
m_tagValuesHasBeenSet(false)
{
}
Aws::String DescribeSnapshotCopyGrantsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeSnapshotCopyGrants&";
if(m_snapshotCopyGrantNameHasBeenSet)
{
ss << "SnapshotCopyGrantName=" << StringUtils::URLEncode(m_snapshotCopyGrantName.c_str()) << "&";
}
if(m_maxRecordsHasBeenSet)
{
ss << "MaxRecords=" << m_maxRecords << "&";
}
if(m_markerHasBeenSet)
{
ss << "Marker=" << StringUtils::URLEncode(m_marker.c_str()) << "&";
}
if(m_tagKeysHasBeenSet)
{
unsigned tagKeysCount = 1;
for(auto& item : m_tagKeys)
{
ss << "TagKeys.member." << tagKeysCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
tagKeysCount++;
}
}
if(m_tagValuesHasBeenSet)
{
unsigned tagValuesCount = 1;
for(auto& item : m_tagValues)
{
ss << "TagValues.member." << tagValuesCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
tagValuesCount++;
}
}
ss << "Version=2012-12-01";
return ss.str();
}
void DescribeSnapshotCopyGrantsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}