/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.wafv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A rule statement used to run the rules that are defined in a RuleGroup. To use this, create a rule group with * your rules, then provide the ARN of the rule group in this statement. *
*
* You cannot nest a RuleGroupReferenceStatement
, for example for use inside a NotStatement
or
* OrStatement
. You can only use a rule group reference statement at the top level inside a web ACL.
*
* The Amazon Resource Name (ARN) of the entity. *
*/ private String aRN; /** *
* Rules in the referenced rule group whose actions are set to Count
.
*
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including
* Count
.
*
* Action settings to use in the place of the rule actions that are configured inside the rule group. You specify * one override for each rule whose action you want to change. *
*
* You can use overrides for testing, for example you can override all of rule actions to Count
and
* then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can
* also permanently override some or all actions, to modify how the rule group manages your web traffic.
*
* The Amazon Resource Name (ARN) of the entity. *
* * @param aRN * The Amazon Resource Name (ARN) of the entity. */ public void setARN(String aRN) { this.aRN = aRN; } /** ** The Amazon Resource Name (ARN) of the entity. *
* * @return The Amazon Resource Name (ARN) of the entity. */ public String getARN() { return this.aRN; } /** ** The Amazon Resource Name (ARN) of the entity. *
* * @param aRN * The Amazon Resource Name (ARN) of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleGroupReferenceStatement withARN(String aRN) { setARN(aRN); return this; } /** *
* Rules in the referenced rule group whose actions are set to Count
.
*
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including
* Count
.
*
Count
.
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting,
* including Count
.
*
* Rules in the referenced rule group whose actions are set to Count
.
*
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including
* Count
.
*
Count
.
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting,
* including Count
.
*
* Rules in the referenced rule group whose actions are set to Count
.
*
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including
* Count
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setExcludedRules(java.util.Collection)} or {@link #withExcludedRules(java.util.Collection)} if you want * to override the existing values. *
* * @param excludedRules * Rules in the referenced rule group whose actions are set toCount
.
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting,
* including Count
.
*
* Rules in the referenced rule group whose actions are set to Count
.
*
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including
* Count
.
*
Count
.
* Instead of this option, use RuleActionOverrides
. It accepts any valid action setting,
* including Count
.
*
* Action settings to use in the place of the rule actions that are configured inside the rule group. You specify * one override for each rule whose action you want to change. *
*
* You can use overrides for testing, for example you can override all of rule actions to Count
and
* then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can
* also permanently override some or all actions, to modify how the rule group manages your web traffic.
*
* You can use overrides for testing, for example you can override all of rule actions to
* Action settings to use in the place of the rule actions that are configured inside the rule group. You specify
* one override for each rule whose action you want to change.
*
* You can use overrides for testing, for example you can override all of rule actions to Count
* and then monitor the resulting count metrics to understand how the rule group would handle your web
* traffic. You can also permanently override some or all actions, to modify how the rule group manages your
* web traffic.
*/
public java.util.ListCount
and
* then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can
* also permanently override some or all actions, to modify how the rule group manages your web traffic.
*
* You can use overrides for testing, for example you can override all of rule actions to
* Action settings to use in the place of the rule actions that are configured inside the rule group. You specify
* one override for each rule whose action you want to change.
*
* You can use overrides for testing, for example you can override all of rule actions to
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRuleActionOverrides(java.util.Collection)} or {@link #withRuleActionOverrides(java.util.Collection)}
* if you want to override the existing values.
* Count
* and then monitor the resulting count metrics to understand how the rule group would handle your web
* traffic. You can also permanently override some or all actions, to modify how the rule group manages your
* web traffic.
*/
public void setRuleActionOverrides(java.util.CollectionCount
and
* then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can
* also permanently override some or all actions, to modify how the rule group manages your web traffic.
*
* You can use overrides for testing, for example you can override all of rule actions to
* Action settings to use in the place of the rule actions that are configured inside the rule group. You specify
* one override for each rule whose action you want to change.
*
* You can use overrides for testing, for example you can override all of rule actions to Count
* and then monitor the resulting count metrics to understand how the rule group would handle your web
* traffic. You can also permanently override some or all actions, to modify how the rule group manages your
* web traffic.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RuleGroupReferenceStatement withRuleActionOverrides(RuleActionOverride... ruleActionOverrides) {
if (this.ruleActionOverrides == null) {
setRuleActionOverrides(new java.util.ArrayListCount
and
* then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can
* also permanently override some or all actions, to modify how the rule group manages your web traffic.
*
* You can use overrides for testing, for example you can override all of rule actions to Count
* and then monitor the resulting count metrics to understand how the rule group would handle your web
* traffic. You can also permanently override some or all actions, to modify how the rule group manages your
* web traffic.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RuleGroupReferenceStatement withRuleActionOverrides(java.util.Collection