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/StartExportTaskRequest.cpp

78 lines
1.9 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rds/model/StartExportTaskRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::RDS::Model;
using namespace Aws::Utils;
StartExportTaskRequest::StartExportTaskRequest() :
m_exportTaskIdentifierHasBeenSet(false),
m_sourceArnHasBeenSet(false),
m_s3BucketNameHasBeenSet(false),
m_iamRoleArnHasBeenSet(false),
m_kmsKeyIdHasBeenSet(false),
m_s3PrefixHasBeenSet(false),
m_exportOnlyHasBeenSet(false)
{
}
Aws::String StartExportTaskRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=StartExportTask&";
if(m_exportTaskIdentifierHasBeenSet)
{
ss << "ExportTaskIdentifier=" << StringUtils::URLEncode(m_exportTaskIdentifier.c_str()) << "&";
}
if(m_sourceArnHasBeenSet)
{
ss << "SourceArn=" << StringUtils::URLEncode(m_sourceArn.c_str()) << "&";
}
if(m_s3BucketNameHasBeenSet)
{
ss << "S3BucketName=" << StringUtils::URLEncode(m_s3BucketName.c_str()) << "&";
}
if(m_iamRoleArnHasBeenSet)
{
ss << "IamRoleArn=" << StringUtils::URLEncode(m_iamRoleArn.c_str()) << "&";
}
if(m_kmsKeyIdHasBeenSet)
{
ss << "KmsKeyId=" << StringUtils::URLEncode(m_kmsKeyId.c_str()) << "&";
}
if(m_s3PrefixHasBeenSet)
{
ss << "S3Prefix=" << StringUtils::URLEncode(m_s3Prefix.c_str()) << "&";
}
if(m_exportOnlyHasBeenSet)
{
unsigned exportOnlyCount = 1;
for(auto& item : m_exportOnly)
{
ss << "ExportOnly.member." << exportOnlyCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
exportOnlyCount++;
}
}
ss << "Version=2014-10-31";
return ss.str();
}
void StartExportTaskRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}