/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::EC2::Model; using namespace Aws::Utils; ModifyClientVpnEndpointRequest::ModifyClientVpnEndpointRequest() : m_clientVpnEndpointIdHasBeenSet(false), m_serverCertificateArnHasBeenSet(false), m_connectionLogOptionsHasBeenSet(false), m_dnsServersHasBeenSet(false), m_vpnPort(0), m_vpnPortHasBeenSet(false), m_descriptionHasBeenSet(false), m_splitTunnel(false), m_splitTunnelHasBeenSet(false), m_dryRun(false), m_dryRunHasBeenSet(false), m_securityGroupIdsHasBeenSet(false), m_vpcIdHasBeenSet(false), m_selfServicePortal(SelfServicePortal::NOT_SET), m_selfServicePortalHasBeenSet(false), m_clientConnectOptionsHasBeenSet(false), m_sessionTimeoutHours(0), m_sessionTimeoutHoursHasBeenSet(false), m_clientLoginBannerOptionsHasBeenSet(false) { } Aws::String ModifyClientVpnEndpointRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ModifyClientVpnEndpoint&"; if(m_clientVpnEndpointIdHasBeenSet) { ss << "ClientVpnEndpointId=" << StringUtils::URLEncode(m_clientVpnEndpointId.c_str()) << "&"; } if(m_serverCertificateArnHasBeenSet) { ss << "ServerCertificateArn=" << StringUtils::URLEncode(m_serverCertificateArn.c_str()) << "&"; } if(m_connectionLogOptionsHasBeenSet) { m_connectionLogOptions.OutputToStream(ss, "ConnectionLogOptions"); } if(m_dnsServersHasBeenSet) { m_dnsServers.OutputToStream(ss, "DnsServers"); } if(m_vpnPortHasBeenSet) { ss << "VpnPort=" << m_vpnPort << "&"; } if(m_descriptionHasBeenSet) { ss << "Description=" << StringUtils::URLEncode(m_description.c_str()) << "&"; } if(m_splitTunnelHasBeenSet) { ss << "SplitTunnel=" << std::boolalpha << m_splitTunnel << "&"; } if(m_dryRunHasBeenSet) { ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; } if(m_securityGroupIdsHasBeenSet) { unsigned securityGroupIdsCount = 1; for(auto& item : m_securityGroupIds) { ss << "SecurityGroupId." << securityGroupIdsCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; securityGroupIdsCount++; } } if(m_vpcIdHasBeenSet) { ss << "VpcId=" << StringUtils::URLEncode(m_vpcId.c_str()) << "&"; } if(m_selfServicePortalHasBeenSet) { ss << "SelfServicePortal=" << SelfServicePortalMapper::GetNameForSelfServicePortal(m_selfServicePortal) << "&"; } if(m_clientConnectOptionsHasBeenSet) { m_clientConnectOptions.OutputToStream(ss, "ClientConnectOptions"); } if(m_sessionTimeoutHoursHasBeenSet) { ss << "SessionTimeoutHours=" << m_sessionTimeoutHours << "&"; } if(m_clientLoginBannerOptionsHasBeenSet) { m_clientLoginBannerOptions.OutputToStream(ss, "ClientLoginBannerOptions"); } ss << "Version=2016-11-15"; return ss.str(); } void ModifyClientVpnEndpointRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }