/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the web access control list (web ACL). The web ACL
* contains the rules that identify the requests that you want to allow, block, or
* count. See Also:
AWS
* API Reference
The action to perform if none of the rules contained in the web ACL match. *
*/ inline const Aws::String& GetDefaultAction() const{ return m_defaultAction; } /** *The action to perform if none of the rules contained in the web ACL match. *
*/ inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; } /** *The action to perform if none of the rules contained in the web ACL match. *
*/ inline void SetDefaultAction(const Aws::String& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; } /** *The action to perform if none of the rules contained in the web ACL match. *
*/ inline void SetDefaultAction(Aws::String&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); } /** *The action to perform if none of the rules contained in the web ACL match. *
*/ inline void SetDefaultAction(const char* value) { m_defaultActionHasBeenSet = true; m_defaultAction.assign(value); } /** *The action to perform if none of the rules contained in the web ACL match. *
*/ inline AwsWafRegionalWebAclDetails& WithDefaultAction(const Aws::String& value) { SetDefaultAction(value); return *this;} /** *The action to perform if none of the rules contained in the web ACL match. *
*/ inline AwsWafRegionalWebAclDetails& WithDefaultAction(Aws::String&& value) { SetDefaultAction(std::move(value)); return *this;} /** *The action to perform if none of the rules contained in the web ACL match. *
*/ inline AwsWafRegionalWebAclDetails& WithDefaultAction(const char* value) { SetDefaultAction(value); return *this;} /** *A name for the metrics for this web ACL.
*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *A name for the metrics for this web ACL.
*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *A name for the metrics for this web ACL.
*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *A name for the metrics for this web ACL.
*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *A name for the metrics for this web ACL.
*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *A name for the metrics for this web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *A name for the metrics for this web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *A name for the metrics for this web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *A descriptive name for the web ACL.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *A descriptive name for the web ACL.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *A descriptive name for the web ACL.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *A descriptive name for the web ACL.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *A descriptive name for the web ACL.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *A descriptive name for the web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *A descriptive name for the web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *A descriptive name for the web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithName(const char* value) { SetName(value); return *this;} /** *An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.
*/ inline const Aws::VectorAn array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.
*/ inline bool RulesListHasBeenSet() const { return m_rulesListHasBeenSet; } /** *An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.
*/ inline void SetRulesList(const Aws::VectorAn array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.
*/ inline void SetRulesList(Aws::VectorAn array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.
*/ inline AwsWafRegionalWebAclDetails& WithRulesList(const Aws::VectorAn array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.
*/ inline AwsWafRegionalWebAclDetails& WithRulesList(Aws::VectorAn array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.
*/ inline AwsWafRegionalWebAclDetails& AddRulesList(const AwsWafRegionalWebAclRulesListDetails& value) { m_rulesListHasBeenSet = true; m_rulesList.push_back(value); return *this; } /** *An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.
*/ inline AwsWafRegionalWebAclDetails& AddRulesList(AwsWafRegionalWebAclRulesListDetails&& value) { m_rulesListHasBeenSet = true; m_rulesList.push_back(std::move(value)); return *this; } /** *The ID of the web ACL.
*/ inline const Aws::String& GetWebAclId() const{ return m_webAclId; } /** *The ID of the web ACL.
*/ inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; } /** *The ID of the web ACL.
*/ inline void SetWebAclId(const Aws::String& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; } /** *The ID of the web ACL.
*/ inline void SetWebAclId(Aws::String&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::move(value); } /** *The ID of the web ACL.
*/ inline void SetWebAclId(const char* value) { m_webAclIdHasBeenSet = true; m_webAclId.assign(value); } /** *The ID of the web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithWebAclId(const Aws::String& value) { SetWebAclId(value); return *this;} /** *The ID of the web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithWebAclId(Aws::String&& value) { SetWebAclId(std::move(value)); return *this;} /** *The ID of the web ACL.
*/ inline AwsWafRegionalWebAclDetails& WithWebAclId(const char* value) { SetWebAclId(value); return *this;} private: Aws::String m_defaultAction; bool m_defaultActionHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector