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

Specifies that WAF should block the request and optionally defines * additional custom handling for the response to the web request.

See * Also:

AWS * API Reference

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

Defines a custom response for the web request. For information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline const AwsWafv2CustomResponseDetails& GetCustomResponse() const{ return m_customResponse; } /** *

Defines a custom response for the web request. For information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline bool CustomResponseHasBeenSet() const { return m_customResponseHasBeenSet; } /** *

Defines a custom response for the web request. For information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline void SetCustomResponse(const AwsWafv2CustomResponseDetails& value) { m_customResponseHasBeenSet = true; m_customResponse = value; } /** *

Defines a custom response for the web request. For information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline void SetCustomResponse(AwsWafv2CustomResponseDetails&& value) { m_customResponseHasBeenSet = true; m_customResponse = std::move(value); } /** *

Defines a custom response for the web request. For information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline AwsWafv2ActionBlockDetails& WithCustomResponse(const AwsWafv2CustomResponseDetails& value) { SetCustomResponse(value); return *this;} /** *

Defines a custom response for the web request. For information, see Customizing * web requests and responses in WAF in the WAF Developer Guide..

*/ inline AwsWafv2ActionBlockDetails& WithCustomResponse(AwsWafv2CustomResponseDetails&& value) { SetCustomResponse(std::move(value)); return *this;} private: AwsWafv2CustomResponseDetails m_customResponse; bool m_customResponseHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws