/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::MigrationHubRefactorSpaces::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateApplicationRequest::CreateApplicationRequest() : m_apiGatewayProxyHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_environmentIdentifierHasBeenSet(false), m_nameHasBeenSet(false), m_proxyType(ProxyType::NOT_SET), m_proxyTypeHasBeenSet(false), m_tagsHasBeenSet(false), m_vpcIdHasBeenSet(false) { } Aws::String CreateApplicationRequest::SerializePayload() const { JsonValue payload; if(m_apiGatewayProxyHasBeenSet) { payload.WithObject("ApiGatewayProxy", m_apiGatewayProxy.Jsonize()); } if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_proxyTypeHasBeenSet) { payload.WithString("ProxyType", ProxyTypeMapper::GetNameForProxyType(m_proxyType)); } if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; for(auto& tagsItem : m_tags) { tagsJsonMap.WithString(tagsItem.first, tagsItem.second); } payload.WithObject("Tags", std::move(tagsJsonMap)); } if(m_vpcIdHasBeenSet) { payload.WithString("VpcId", m_vpcId); } return payload.View().WriteReadable(); }