/** * 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; ModifyVerifiedAccessEndpointPolicyRequest::ModifyVerifiedAccessEndpointPolicyRequest() : m_verifiedAccessEndpointIdHasBeenSet(false), m_policyEnabled(false), m_policyEnabledHasBeenSet(false), m_policyDocumentHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_dryRun(false), m_dryRunHasBeenSet(false) { } Aws::String ModifyVerifiedAccessEndpointPolicyRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ModifyVerifiedAccessEndpointPolicy&"; if(m_verifiedAccessEndpointIdHasBeenSet) { ss << "VerifiedAccessEndpointId=" << StringUtils::URLEncode(m_verifiedAccessEndpointId.c_str()) << "&"; } if(m_policyEnabledHasBeenSet) { ss << "PolicyEnabled=" << std::boolalpha << m_policyEnabled << "&"; } if(m_policyDocumentHasBeenSet) { ss << "PolicyDocument=" << StringUtils::URLEncode(m_policyDocument.c_str()) << "&"; } if(m_clientTokenHasBeenSet) { ss << "ClientToken=" << StringUtils::URLEncode(m_clientToken.c_str()) << "&"; } if(m_dryRunHasBeenSet) { ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; } ss << "Version=2016-11-15"; return ss.str(); } void ModifyVerifiedAccessEndpointPolicyRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }