/** * 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; ResetClusterParameterGroupRequest::ResetClusterParameterGroupRequest() : m_parameterGroupNameHasBeenSet(false), m_resetAllParameters(false), m_resetAllParametersHasBeenSet(false), m_parametersHasBeenSet(false) { } Aws::String ResetClusterParameterGroupRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ResetClusterParameterGroup&"; if(m_parameterGroupNameHasBeenSet) { ss << "ParameterGroupName=" << StringUtils::URLEncode(m_parameterGroupName.c_str()) << "&"; } if(m_resetAllParametersHasBeenSet) { ss << "ResetAllParameters=" << std::boolalpha << m_resetAllParameters << "&"; } if(m_parametersHasBeenSet) { unsigned parametersCount = 1; for(auto& item : m_parameters) { item.OutputToStream(ss, "Parameters.member.", parametersCount, ""); parametersCount++; } } ss << "Version=2012-12-01"; return ss.str(); } void ResetClusterParameterGroupRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }