/** * 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; CreateClusterParameterGroupRequest::CreateClusterParameterGroupRequest() : m_parameterGroupNameHasBeenSet(false), m_parameterGroupFamilyHasBeenSet(false), m_descriptionHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreateClusterParameterGroupRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=CreateClusterParameterGroup&"; if(m_parameterGroupNameHasBeenSet) { ss << "ParameterGroupName=" << StringUtils::URLEncode(m_parameterGroupName.c_str()) << "&"; } if(m_parameterGroupFamilyHasBeenSet) { ss << "ParameterGroupFamily=" << StringUtils::URLEncode(m_parameterGroupFamily.c_str()) << "&"; } if(m_descriptionHasBeenSet) { ss << "Description=" << StringUtils::URLEncode(m_description.c_str()) << "&"; } 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 CreateClusterParameterGroupRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }