/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The automatic application layer DDoS mitigation settings for a
* Protection. This configuration determines whether Shield Advanced
* automatically manages rules in the web ACL in order to respond to application
* layer events that Shield Advanced determines to be DDoS attacks. See
* Also:
AWS
* API Reference
Indicates whether automatic application layer DDoS mitigation is enabled for * the protection.
*/ inline const ApplicationLayerAutomaticResponseStatus& GetStatus() const{ return m_status; } /** *Indicates whether automatic application layer DDoS mitigation is enabled for * the protection.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *Indicates whether automatic application layer DDoS mitigation is enabled for * the protection.
*/ inline void SetStatus(const ApplicationLayerAutomaticResponseStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *Indicates whether automatic application layer DDoS mitigation is enabled for * the protection.
*/ inline void SetStatus(ApplicationLayerAutomaticResponseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *Indicates whether automatic application layer DDoS mitigation is enabled for * the protection.
*/ inline ApplicationLayerAutomaticResponseConfiguration& WithStatus(const ApplicationLayerAutomaticResponseStatus& value) { SetStatus(value); return *this;} /** *Indicates whether automatic application layer DDoS mitigation is enabled for * the protection.
*/ inline ApplicationLayerAutomaticResponseConfiguration& WithStatus(ApplicationLayerAutomaticResponseStatus&& value) { SetStatus(std::move(value)); return *this;} /** *Specifies the action setting that Shield Advanced should use in the WAF rules * that it creates on behalf of the protected resource in response to DDoS attacks. * You specify this as part of the configuration for the automatic application * layer DDoS mitigation feature, when you enable or update automatic mitigation. * Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, * inside the web ACL that you have associated with the resource.
*/ inline const ResponseAction& GetAction() const{ return m_action; } /** *Specifies the action setting that Shield Advanced should use in the WAF rules * that it creates on behalf of the protected resource in response to DDoS attacks. * You specify this as part of the configuration for the automatic application * layer DDoS mitigation feature, when you enable or update automatic mitigation. * Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, * inside the web ACL that you have associated with the resource.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *Specifies the action setting that Shield Advanced should use in the WAF rules * that it creates on behalf of the protected resource in response to DDoS attacks. * You specify this as part of the configuration for the automatic application * layer DDoS mitigation feature, when you enable or update automatic mitigation. * Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, * inside the web ACL that you have associated with the resource.
*/ inline void SetAction(const ResponseAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *Specifies the action setting that Shield Advanced should use in the WAF rules * that it creates on behalf of the protected resource in response to DDoS attacks. * You specify this as part of the configuration for the automatic application * layer DDoS mitigation feature, when you enable or update automatic mitigation. * Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, * inside the web ACL that you have associated with the resource.
*/ inline void SetAction(ResponseAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *Specifies the action setting that Shield Advanced should use in the WAF rules * that it creates on behalf of the protected resource in response to DDoS attacks. * You specify this as part of the configuration for the automatic application * layer DDoS mitigation feature, when you enable or update automatic mitigation. * Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, * inside the web ACL that you have associated with the resource.
*/ inline ApplicationLayerAutomaticResponseConfiguration& WithAction(const ResponseAction& value) { SetAction(value); return *this;} /** *Specifies the action setting that Shield Advanced should use in the WAF rules * that it creates on behalf of the protected resource in response to DDoS attacks. * You specify this as part of the configuration for the automatic application * layer DDoS mitigation feature, when you enable or update automatic mitigation. * Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, * inside the web ACL that you have associated with the resource.
*/ inline ApplicationLayerAutomaticResponseConfiguration& WithAction(ResponseAction&& value) { SetAction(std::move(value)); return *this;} private: ApplicationLayerAutomaticResponseStatus m_status; bool m_statusHasBeenSet = false; ResponseAction m_action; bool m_actionHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws