54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/rds/model/ResetDBClusterParameterGroupRequest.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
using namespace Aws::RDS::Model;
|
|
using namespace Aws::Utils;
|
|
|
|
ResetDBClusterParameterGroupRequest::ResetDBClusterParameterGroupRequest() :
|
|
m_dBClusterParameterGroupNameHasBeenSet(false),
|
|
m_resetAllParameters(false),
|
|
m_resetAllParametersHasBeenSet(false),
|
|
m_parametersHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String ResetDBClusterParameterGroupRequest::SerializePayload() const
|
|
{
|
|
Aws::StringStream ss;
|
|
ss << "Action=ResetDBClusterParameterGroup&";
|
|
if(m_dBClusterParameterGroupNameHasBeenSet)
|
|
{
|
|
ss << "DBClusterParameterGroupName=" << StringUtils::URLEncode(m_dBClusterParameterGroupName.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=2014-10-31";
|
|
return ss.str();
|
|
}
|
|
|
|
|
|
void ResetDBClusterParameterGroupRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|
{
|
|
uri.SetQueryString(SerializePayload());
|
|
}
|