/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::WAFV2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListResourcesForWebACLRequest::ListResourcesForWebACLRequest() : m_webACLArnHasBeenSet(false), m_resourceType(ResourceType::NOT_SET), m_resourceTypeHasBeenSet(false) { } Aws::String ListResourcesForWebACLRequest::SerializePayload() const { JsonValue payload; if(m_webACLArnHasBeenSet) { payload.WithString("WebACLArn", m_webACLArn); } if(m_resourceTypeHasBeenSet) { payload.WithString("ResourceType", ResourceTypeMapper::GetNameForResourceType(m_resourceType)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListResourcesForWebACLRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_20190729.ListResourcesForWebACL")); return headers; }