/** * 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; UpdatePartnerStatusRequest::UpdatePartnerStatusRequest() : m_accountIdHasBeenSet(false), m_clusterIdentifierHasBeenSet(false), m_databaseNameHasBeenSet(false), m_partnerNameHasBeenSet(false), m_status(PartnerIntegrationStatus::NOT_SET), m_statusHasBeenSet(false), m_statusMessageHasBeenSet(false) { } Aws::String UpdatePartnerStatusRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=UpdatePartnerStatus&"; if(m_accountIdHasBeenSet) { ss << "AccountId=" << StringUtils::URLEncode(m_accountId.c_str()) << "&"; } if(m_clusterIdentifierHasBeenSet) { ss << "ClusterIdentifier=" << StringUtils::URLEncode(m_clusterIdentifier.c_str()) << "&"; } if(m_databaseNameHasBeenSet) { ss << "DatabaseName=" << StringUtils::URLEncode(m_databaseName.c_str()) << "&"; } if(m_partnerNameHasBeenSet) { ss << "PartnerName=" << StringUtils::URLEncode(m_partnerName.c_str()) << "&"; } if(m_statusHasBeenSet) { ss << "Status=" << PartnerIntegrationStatusMapper::GetNameForPartnerIntegrationStatus(m_status) << "&"; } if(m_statusMessageHasBeenSet) { ss << "StatusMessage=" << StringUtils::URLEncode(m_statusMessage.c_str()) << "&"; } ss << "Version=2012-12-01"; return ss.str(); } void UpdatePartnerStatusRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }