/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ElasticBeanstalk::Model; using namespace Aws::Utils; ListPlatformVersionsRequest::ListPlatformVersionsRequest() : m_filtersHasBeenSet(false), m_maxRecords(0), m_maxRecordsHasBeenSet(false), m_nextTokenHasBeenSet(false) { } Aws::String ListPlatformVersionsRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ListPlatformVersions&"; 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_nextTokenHasBeenSet) { ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&"; } ss << "Version=2010-12-01"; return ss.str(); } void ListPlatformVersionsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }