47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/redshift/model/ModifyClusterParameterGroupRequest.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
using namespace Aws::Redshift::Model;
|
|
using namespace Aws::Utils;
|
|
|
|
ModifyClusterParameterGroupRequest::ModifyClusterParameterGroupRequest() :
|
|
m_parameterGroupNameHasBeenSet(false),
|
|
m_parametersHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String ModifyClusterParameterGroupRequest::SerializePayload() const
|
|
{
|
|
Aws::StringStream ss;
|
|
ss << "Action=ModifyClusterParameterGroup&";
|
|
if(m_parameterGroupNameHasBeenSet)
|
|
{
|
|
ss << "ParameterGroupName=" << StringUtils::URLEncode(m_parameterGroupName.c_str()) << "&";
|
|
}
|
|
|
|
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 ModifyClusterParameterGroupRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|
{
|
|
uri.SetQueryString(SerializePayload());
|
|
}
|