/** * 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; CreateClusterSnapshotRequest::CreateClusterSnapshotRequest() : m_snapshotIdentifierHasBeenSet(false), m_clusterIdentifierHasBeenSet(false), m_manualSnapshotRetentionPeriod(0), m_manualSnapshotRetentionPeriodHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreateClusterSnapshotRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=CreateClusterSnapshot&"; if(m_snapshotIdentifierHasBeenSet) { ss << "SnapshotIdentifier=" << StringUtils::URLEncode(m_snapshotIdentifier.c_str()) << "&"; } if(m_clusterIdentifierHasBeenSet) { ss << "ClusterIdentifier=" << StringUtils::URLEncode(m_clusterIdentifier.c_str()) << "&"; } if(m_manualSnapshotRetentionPeriodHasBeenSet) { ss << "ManualSnapshotRetentionPeriod=" << m_manualSnapshotRetentionPeriod << "&"; } if(m_tagsHasBeenSet) { unsigned tagsCount = 1; for(auto& item : m_tags) { item.OutputToStream(ss, "Tags.member.", tagsCount, ""); tagsCount++; } } ss << "Version=2012-12-01"; return ss.str(); } void CreateClusterSnapshotRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }