/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::NetworkFirewall::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateFirewallPolicyChangeProtectionRequest::UpdateFirewallPolicyChangeProtectionRequest() : m_updateTokenHasBeenSet(false), m_firewallArnHasBeenSet(false), m_firewallNameHasBeenSet(false), m_firewallPolicyChangeProtection(false), m_firewallPolicyChangeProtectionHasBeenSet(false) { } Aws::String UpdateFirewallPolicyChangeProtectionRequest::SerializePayload() const { JsonValue payload; if(m_updateTokenHasBeenSet) { payload.WithString("UpdateToken", m_updateToken); } if(m_firewallArnHasBeenSet) { payload.WithString("FirewallArn", m_firewallArn); } if(m_firewallNameHasBeenSet) { payload.WithString("FirewallName", m_firewallName); } if(m_firewallPolicyChangeProtectionHasBeenSet) { payload.WithBool("FirewallPolicyChangeProtection", m_firewallPolicyChangeProtection); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateFirewallPolicyChangeProtectionRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "NetworkFirewall_20201112.UpdateFirewallPolicyChangeProtection")); return headers; }