/** * 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; ModifyDBClusterSnapshotAttributeRequest::ModifyDBClusterSnapshotAttributeRequest() : m_dBClusterSnapshotIdentifierHasBeenSet(false), m_attributeNameHasBeenSet(false), m_valuesToAddHasBeenSet(false), m_valuesToRemoveHasBeenSet(false) { } Aws::String ModifyDBClusterSnapshotAttributeRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ModifyDBClusterSnapshotAttribute&"; if(m_dBClusterSnapshotIdentifierHasBeenSet) { ss << "DBClusterSnapshotIdentifier=" << StringUtils::URLEncode(m_dBClusterSnapshotIdentifier.c_str()) << "&"; } if(m_attributeNameHasBeenSet) { ss << "AttributeName=" << StringUtils::URLEncode(m_attributeName.c_str()) << "&"; } if(m_valuesToAddHasBeenSet) { unsigned valuesToAddCount = 1; for(auto& item : m_valuesToAdd) { ss << "ValuesToAdd.member." << valuesToAddCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; valuesToAddCount++; } } if(m_valuesToRemoveHasBeenSet) { unsigned valuesToRemoveCount = 1; for(auto& item : m_valuesToRemove) { ss << "ValuesToRemove.member." << valuesToRemoveCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; valuesToRemoveCount++; } } ss << "Version=2014-10-31"; return ss.str(); } void ModifyDBClusterSnapshotAttributeRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }