/** * 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; ReplaceNetworkAclEntryRequest::ReplaceNetworkAclEntryRequest() : m_cidrBlockHasBeenSet(false), m_dryRun(false), m_dryRunHasBeenSet(false), m_egress(false), m_egressHasBeenSet(false), m_icmpTypeCodeHasBeenSet(false), m_ipv6CidrBlockHasBeenSet(false), m_networkAclIdHasBeenSet(false), m_portRangeHasBeenSet(false), m_protocolHasBeenSet(false), m_ruleAction(RuleAction::NOT_SET), m_ruleActionHasBeenSet(false), m_ruleNumber(0), m_ruleNumberHasBeenSet(false) { } Aws::String ReplaceNetworkAclEntryRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ReplaceNetworkAclEntry&"; if(m_cidrBlockHasBeenSet) { ss << "CidrBlock=" << StringUtils::URLEncode(m_cidrBlock.c_str()) << "&"; } if(m_dryRunHasBeenSet) { ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; } if(m_egressHasBeenSet) { ss << "Egress=" << std::boolalpha << m_egress << "&"; } if(m_icmpTypeCodeHasBeenSet) { m_icmpTypeCode.OutputToStream(ss, "Icmp"); } if(m_ipv6CidrBlockHasBeenSet) { ss << "Ipv6CidrBlock=" << StringUtils::URLEncode(m_ipv6CidrBlock.c_str()) << "&"; } if(m_networkAclIdHasBeenSet) { ss << "NetworkAclId=" << StringUtils::URLEncode(m_networkAclId.c_str()) << "&"; } if(m_portRangeHasBeenSet) { m_portRange.OutputToStream(ss, "PortRange"); } if(m_protocolHasBeenSet) { ss << "Protocol=" << StringUtils::URLEncode(m_protocol.c_str()) << "&"; } if(m_ruleActionHasBeenSet) { ss << "RuleAction=" << RuleActionMapper::GetNameForRuleAction(m_ruleAction) << "&"; } if(m_ruleNumberHasBeenSet) { ss << "RuleNumber=" << m_ruleNumber << "&"; } ss << "Version=2016-11-15"; return ss.str(); } void ReplaceNetworkAclEntryRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }