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-rds/source/model/CreateDBSubnetGroupRequest.cpp

65 lines
1.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rds/model/CreateDBSubnetGroupRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::RDS::Model;
using namespace Aws::Utils;
CreateDBSubnetGroupRequest::CreateDBSubnetGroupRequest() :
m_dBSubnetGroupNameHasBeenSet(false),
m_dBSubnetGroupDescriptionHasBeenSet(false),
m_subnetIdsHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateDBSubnetGroupRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=CreateDBSubnetGroup&";
if(m_dBSubnetGroupNameHasBeenSet)
{
ss << "DBSubnetGroupName=" << StringUtils::URLEncode(m_dBSubnetGroupName.c_str()) << "&";
}
if(m_dBSubnetGroupDescriptionHasBeenSet)
{
ss << "DBSubnetGroupDescription=" << StringUtils::URLEncode(m_dBSubnetGroupDescription.c_str()) << "&";
}
if(m_subnetIdsHasBeenSet)
{
unsigned subnetIdsCount = 1;
for(auto& item : m_subnetIds)
{
ss << "SubnetIds.member." << subnetIdsCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
subnetIdsCount++;
}
}
if(m_tagsHasBeenSet)
{
unsigned tagsCount = 1;
for(auto& item : m_tags)
{
item.OutputToStream(ss, "Tags.member.", tagsCount, "");
tagsCount++;
}
}
ss << "Version=2014-10-31";
return ss.str();
}
void CreateDBSubnetGroupRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}