/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::DocDB::Model; using namespace Aws::Utils; DescribeDBClusterSnapshotsRequest::DescribeDBClusterSnapshotsRequest() : m_dBClusterIdentifierHasBeenSet(false), m_dBClusterSnapshotIdentifierHasBeenSet(false), m_snapshotTypeHasBeenSet(false), m_filtersHasBeenSet(false), m_maxRecords(0), m_maxRecordsHasBeenSet(false), m_markerHasBeenSet(false), m_includeShared(false), m_includeSharedHasBeenSet(false), m_includePublic(false), m_includePublicHasBeenSet(false) { } Aws::String DescribeDBClusterSnapshotsRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=DescribeDBClusterSnapshots&"; if(m_dBClusterIdentifierHasBeenSet) { ss << "DBClusterIdentifier=" << StringUtils::URLEncode(m_dBClusterIdentifier.c_str()) << "&"; } if(m_dBClusterSnapshotIdentifierHasBeenSet) { ss << "DBClusterSnapshotIdentifier=" << StringUtils::URLEncode(m_dBClusterSnapshotIdentifier.c_str()) << "&"; } if(m_snapshotTypeHasBeenSet) { ss << "SnapshotType=" << StringUtils::URLEncode(m_snapshotType.c_str()) << "&"; } if(m_filtersHasBeenSet) { unsigned filtersCount = 1; for(auto& item : m_filters) { item.OutputToStream(ss, "Filters.member.", filtersCount, ""); filtersCount++; } } if(m_maxRecordsHasBeenSet) { ss << "MaxRecords=" << m_maxRecords << "&"; } if(m_markerHasBeenSet) { ss << "Marker=" << StringUtils::URLEncode(m_marker.c_str()) << "&"; } if(m_includeSharedHasBeenSet) { ss << "IncludeShared=" << std::boolalpha << m_includeShared << "&"; } if(m_includePublicHasBeenSet) { ss << "IncludePublic=" << std::boolalpha << m_includePublic << "&"; } ss << "Version=2014-10-31"; return ss.str(); } void DescribeDBClusterSnapshotsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }