/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Custom request handling behavior that inserts custom headers into a web
* request. You can add custom request handling for WAF to use when the rule action
* doesn't block the request. For example, For information about
* customizing web requests and responses, see Customizing
* web requests and responses in WAF in the WAF Developer Guide.
* CaptchaAction
for requests
* with valid t okens, and AllowAction
. See Also:
AWS
* API Reference
The HTTP headers to insert into the request. Duplicate header names are not * allowed.
For information about the limits on count and size for custom * request and response settings, see WAF * quotas in the WAF Developer Guide.
*/ inline const Aws::VectorThe HTTP headers to insert into the request. Duplicate header names are not * allowed.
For information about the limits on count and size for custom * request and response settings, see WAF * quotas in the WAF Developer Guide.
*/ inline bool InsertHeadersHasBeenSet() const { return m_insertHeadersHasBeenSet; } /** *The HTTP headers to insert into the request. Duplicate header names are not * allowed.
For information about the limits on count and size for custom * request and response settings, see WAF * quotas in the WAF Developer Guide.
*/ inline void SetInsertHeaders(const Aws::VectorThe HTTP headers to insert into the request. Duplicate header names are not * allowed.
For information about the limits on count and size for custom * request and response settings, see WAF * quotas in the WAF Developer Guide.
*/ inline void SetInsertHeaders(Aws::VectorThe HTTP headers to insert into the request. Duplicate header names are not * allowed.
For information about the limits on count and size for custom * request and response settings, see WAF * quotas in the WAF Developer Guide.
*/ inline CustomRequestHandling& WithInsertHeaders(const Aws::VectorThe HTTP headers to insert into the request. Duplicate header names are not * allowed.
For information about the limits on count and size for custom * request and response settings, see WAF * quotas in the WAF Developer Guide.
*/ inline CustomRequestHandling& WithInsertHeaders(Aws::VectorThe HTTP headers to insert into the request. Duplicate header names are not * allowed.
For information about the limits on count and size for custom * request and response settings, see WAF * quotas in the WAF Developer Guide.
*/ inline CustomRequestHandling& AddInsertHeaders(const CustomHTTPHeader& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders.push_back(value); return *this; } /** *The HTTP headers to insert into the request. Duplicate header names are not * allowed.
For information about the limits on count and size for custom * request and response settings, see WAF * quotas in the WAF Developer Guide.
*/ inline CustomRequestHandling& AddInsertHeaders(CustomHTTPHeader&& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders.push_back(std::move(value)); return *this; } private: Aws::Vector