/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Custom request handling behavior that inserts custom headers into a web * request. WAF uses custom request handling when the rule action doesn't block the * request.

See Also:

AWS * API Reference

*/ class AwsWafv2CustomRequestHandlingDetails { public: AWS_SECURITYHUB_API AwsWafv2CustomRequestHandlingDetails(); AWS_SECURITYHUB_API AwsWafv2CustomRequestHandlingDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsWafv2CustomRequestHandlingDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The HTTP headers to insert into the request.

*/ inline const Aws::Vector& GetInsertHeaders() const{ return m_insertHeaders; } /** *

The HTTP headers to insert into the request.

*/ inline bool InsertHeadersHasBeenSet() const { return m_insertHeadersHasBeenSet; } /** *

The HTTP headers to insert into the request.

*/ inline void SetInsertHeaders(const Aws::Vector& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders = value; } /** *

The HTTP headers to insert into the request.

*/ inline void SetInsertHeaders(Aws::Vector&& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders = std::move(value); } /** *

The HTTP headers to insert into the request.

*/ inline AwsWafv2CustomRequestHandlingDetails& WithInsertHeaders(const Aws::Vector& value) { SetInsertHeaders(value); return *this;} /** *

The HTTP headers to insert into the request.

*/ inline AwsWafv2CustomRequestHandlingDetails& WithInsertHeaders(Aws::Vector&& value) { SetInsertHeaders(std::move(value)); return *this;} /** *

The HTTP headers to insert into the request.

*/ inline AwsWafv2CustomRequestHandlingDetails& AddInsertHeaders(const AwsWafv2CustomHttpHeader& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders.push_back(value); return *this; } /** *

The HTTP headers to insert into the request.

*/ inline AwsWafv2CustomRequestHandlingDetails& AddInsertHeaders(AwsWafv2CustomHttpHeader&& value) { m_insertHeadersHasBeenSet = true; m_insertHeaders.push_back(std::move(value)); return *this; } private: Aws::Vector m_insertHeaders; bool m_insertHeadersHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws