/** * 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; DisassociateSubnetsRequest::DisassociateSubnetsRequest() : m_updateTokenHasBeenSet(false), m_firewallArnHasBeenSet(false), m_firewallNameHasBeenSet(false), m_subnetIdsHasBeenSet(false) { } Aws::String DisassociateSubnetsRequest::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_subnetIdsHasBeenSet) { Aws::Utils::Array subnetIdsJsonList(m_subnetIds.size()); for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) { subnetIdsJsonList[subnetIdsIndex].AsString(m_subnetIds[subnetIdsIndex]); } payload.WithArray("SubnetIds", std::move(subnetIdsJsonList)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DisassociateSubnetsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "NetworkFirewall_20201112.DisassociateSubnets")); return headers; }