/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Redshift::Model; using namespace Aws::Utils; CreateClusterSubnetGroupRequest::CreateClusterSubnetGroupRequest() : m_clusterSubnetGroupNameHasBeenSet(false), m_descriptionHasBeenSet(false), m_subnetIdsHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreateClusterSubnetGroupRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=CreateClusterSubnetGroup&"; if(m_clusterSubnetGroupNameHasBeenSet) { ss << "ClusterSubnetGroupName=" << StringUtils::URLEncode(m_clusterSubnetGroupName.c_str()) << "&"; } if(m_descriptionHasBeenSet) { ss << "Description=" << StringUtils::URLEncode(m_description.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=2012-12-01"; return ss.str(); } void CreateClusterSubnetGroupRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }