/** * 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; RevokeEndpointAccessRequest::RevokeEndpointAccessRequest() : m_clusterIdentifierHasBeenSet(false), m_accountHasBeenSet(false), m_vpcIdsHasBeenSet(false), m_force(false), m_forceHasBeenSet(false) { } Aws::String RevokeEndpointAccessRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=RevokeEndpointAccess&"; if(m_clusterIdentifierHasBeenSet) { ss << "ClusterIdentifier=" << StringUtils::URLEncode(m_clusterIdentifier.c_str()) << "&"; } if(m_accountHasBeenSet) { ss << "Account=" << StringUtils::URLEncode(m_account.c_str()) << "&"; } if(m_vpcIdsHasBeenSet) { unsigned vpcIdsCount = 1; for(auto& item : m_vpcIds) { ss << "VpcIds.member." << vpcIdsCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; vpcIdsCount++; } } if(m_forceHasBeenSet) { ss << "Force=" << std::boolalpha << m_force << "&"; } ss << "Version=2012-12-01"; return ss.str(); } void RevokeEndpointAccessRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }