/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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