/** * 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; ComposeEnvironmentsRequest::ComposeEnvironmentsRequest() : m_applicationNameHasBeenSet(false), m_groupNameHasBeenSet(false), m_versionLabelsHasBeenSet(false) { } Aws::String ComposeEnvironmentsRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ComposeEnvironments&"; if(m_applicationNameHasBeenSet) { ss << "ApplicationName=" << StringUtils::URLEncode(m_applicationName.c_str()) << "&"; } if(m_groupNameHasBeenSet) { ss << "GroupName=" << StringUtils::URLEncode(m_groupName.c_str()) << "&"; } if(m_versionLabelsHasBeenSet) { unsigned versionLabelsCount = 1; for(auto& item : m_versionLabels) { ss << "VersionLabels.member." << versionLabelsCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; versionLabelsCount++; } } ss << "Version=2010-12-01"; return ss.str(); } void ComposeEnvironmentsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }