/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::WAFRegional::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; AssociateWebACLRequest::AssociateWebACLRequest() : m_webACLIdHasBeenSet(false), m_resourceArnHasBeenSet(false) { } Aws::String AssociateWebACLRequest::SerializePayload() const { JsonValue payload; if(m_webACLIdHasBeenSet) { payload.WithString("WebACLId", m_webACLId); } if(m_resourceArnHasBeenSet) { payload.WithString("ResourceArn", m_resourceArn); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection AssociateWebACLRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.AssociateWebACL")); return headers; }