This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-rds/source/model/RestoreDBClusterToPointInTimeRequest.cpp

167 lines
4.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rds/model/RestoreDBClusterToPointInTimeRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::RDS::Model;
using namespace Aws::Utils;
RestoreDBClusterToPointInTimeRequest::RestoreDBClusterToPointInTimeRequest() :
m_dBClusterIdentifierHasBeenSet(false),
m_restoreTypeHasBeenSet(false),
m_sourceDBClusterIdentifierHasBeenSet(false),
m_restoreToTimeHasBeenSet(false),
m_useLatestRestorableTime(false),
m_useLatestRestorableTimeHasBeenSet(false),
m_port(0),
m_portHasBeenSet(false),
m_dBSubnetGroupNameHasBeenSet(false),
m_optionGroupNameHasBeenSet(false),
m_vpcSecurityGroupIdsHasBeenSet(false),
m_tagsHasBeenSet(false),
m_kmsKeyIdHasBeenSet(false),
m_enableIAMDatabaseAuthentication(false),
m_enableIAMDatabaseAuthenticationHasBeenSet(false),
m_backtrackWindow(0),
m_backtrackWindowHasBeenSet(false),
m_enableCloudwatchLogsExportsHasBeenSet(false),
m_dBClusterParameterGroupNameHasBeenSet(false),
m_deletionProtection(false),
m_deletionProtectionHasBeenSet(false),
m_copyTagsToSnapshot(false),
m_copyTagsToSnapshotHasBeenSet(false),
m_domainHasBeenSet(false),
m_domainIAMRoleNameHasBeenSet(false)
{
}
Aws::String RestoreDBClusterToPointInTimeRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=RestoreDBClusterToPointInTime&";
if(m_dBClusterIdentifierHasBeenSet)
{
ss << "DBClusterIdentifier=" << StringUtils::URLEncode(m_dBClusterIdentifier.c_str()) << "&";
}
if(m_restoreTypeHasBeenSet)
{
ss << "RestoreType=" << StringUtils::URLEncode(m_restoreType.c_str()) << "&";
}
if(m_sourceDBClusterIdentifierHasBeenSet)
{
ss << "SourceDBClusterIdentifier=" << StringUtils::URLEncode(m_sourceDBClusterIdentifier.c_str()) << "&";
}
if(m_restoreToTimeHasBeenSet)
{
ss << "RestoreToTime=" << StringUtils::URLEncode(m_restoreToTime.ToGmtString(DateFormat::ISO_8601).c_str()) << "&";
}
if(m_useLatestRestorableTimeHasBeenSet)
{
ss << "UseLatestRestorableTime=" << std::boolalpha << m_useLatestRestorableTime << "&";
}
if(m_portHasBeenSet)
{
ss << "Port=" << m_port << "&";
}
if(m_dBSubnetGroupNameHasBeenSet)
{
ss << "DBSubnetGroupName=" << StringUtils::URLEncode(m_dBSubnetGroupName.c_str()) << "&";
}
if(m_optionGroupNameHasBeenSet)
{
ss << "OptionGroupName=" << StringUtils::URLEncode(m_optionGroupName.c_str()) << "&";
}
if(m_vpcSecurityGroupIdsHasBeenSet)
{
unsigned vpcSecurityGroupIdsCount = 1;
for(auto& item : m_vpcSecurityGroupIds)
{
ss << "VpcSecurityGroupIds.member." << vpcSecurityGroupIdsCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
vpcSecurityGroupIdsCount++;
}
}
if(m_tagsHasBeenSet)
{
unsigned tagsCount = 1;
for(auto& item : m_tags)
{
item.OutputToStream(ss, "Tags.member.", tagsCount, "");
tagsCount++;
}
}
if(m_kmsKeyIdHasBeenSet)
{
ss << "KmsKeyId=" << StringUtils::URLEncode(m_kmsKeyId.c_str()) << "&";
}
if(m_enableIAMDatabaseAuthenticationHasBeenSet)
{
ss << "EnableIAMDatabaseAuthentication=" << std::boolalpha << m_enableIAMDatabaseAuthentication << "&";
}
if(m_backtrackWindowHasBeenSet)
{
ss << "BacktrackWindow=" << m_backtrackWindow << "&";
}
if(m_enableCloudwatchLogsExportsHasBeenSet)
{
unsigned enableCloudwatchLogsExportsCount = 1;
for(auto& item : m_enableCloudwatchLogsExports)
{
ss << "EnableCloudwatchLogsExports.member." << enableCloudwatchLogsExportsCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
enableCloudwatchLogsExportsCount++;
}
}
if(m_dBClusterParameterGroupNameHasBeenSet)
{
ss << "DBClusterParameterGroupName=" << StringUtils::URLEncode(m_dBClusterParameterGroupName.c_str()) << "&";
}
if(m_deletionProtectionHasBeenSet)
{
ss << "DeletionProtection=" << std::boolalpha << m_deletionProtection << "&";
}
if(m_copyTagsToSnapshotHasBeenSet)
{
ss << "CopyTagsToSnapshot=" << std::boolalpha << m_copyTagsToSnapshot << "&";
}
if(m_domainHasBeenSet)
{
ss << "Domain=" << StringUtils::URLEncode(m_domain.c_str()) << "&";
}
if(m_domainIAMRoleNameHasBeenSet)
{
ss << "DomainIAMRoleName=" << StringUtils::URLEncode(m_domainIAMRoleName.c_str()) << "&";
}
ss << "Version=2014-10-31";
return ss.str();
}
void RestoreDBClusterToPointInTimeRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}