/** * 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; CreatePlatformVersionRequest::CreatePlatformVersionRequest() : m_platformNameHasBeenSet(false), m_platformVersionHasBeenSet(false), m_platformDefinitionBundleHasBeenSet(false), m_environmentNameHasBeenSet(false), m_optionSettingsHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreatePlatformVersionRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=CreatePlatformVersion&"; if(m_platformNameHasBeenSet) { ss << "PlatformName=" << StringUtils::URLEncode(m_platformName.c_str()) << "&"; } if(m_platformVersionHasBeenSet) { ss << "PlatformVersion=" << StringUtils::URLEncode(m_platformVersion.c_str()) << "&"; } if(m_platformDefinitionBundleHasBeenSet) { m_platformDefinitionBundle.OutputToStream(ss, "PlatformDefinitionBundle"); } if(m_environmentNameHasBeenSet) { ss << "EnvironmentName=" << StringUtils::URLEncode(m_environmentName.c_str()) << "&"; } if(m_optionSettingsHasBeenSet) { unsigned optionSettingsCount = 1; for(auto& item : m_optionSettings) { item.OutputToStream(ss, "OptionSettings.member.", optionSettingsCount, ""); optionSettingsCount++; } } if(m_tagsHasBeenSet) { unsigned tagsCount = 1; for(auto& item : m_tags) { item.OutputToStream(ss, "Tags.member.", tagsCount, ""); tagsCount++; } } ss << "Version=2010-12-01"; return ss.str(); } void CreatePlatformVersionRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }