/* * 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.waf.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateRuleGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The RuleGroupId
of the RuleGroup that you want to update. RuleGroupId
is
* returned by CreateRuleGroup and by ListRuleGroups.
*
* An array of RuleGroupUpdate
objects that you want to insert into or delete from a RuleGroup.
*
* You can only insert REGULAR
rules into a rule group.
*
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to a
* WebACL
. In this case you do not use ActivatedRule|Action
. For all other update
* requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
*
* The value returned by the most recent call to GetChangeToken. *
*/ private String changeToken; /** *
* The RuleGroupId
of the RuleGroup that you want to update. RuleGroupId
is
* returned by CreateRuleGroup and by ListRuleGroups.
*
RuleGroupId
of the RuleGroup that you want to update. RuleGroupId
is
* returned by CreateRuleGroup and by ListRuleGroups.
*/
public void setRuleGroupId(String ruleGroupId) {
this.ruleGroupId = ruleGroupId;
}
/**
*
* The RuleGroupId
of the RuleGroup that you want to update. RuleGroupId
is
* returned by CreateRuleGroup and by ListRuleGroups.
*
RuleGroupId
of the RuleGroup that you want to update. RuleGroupId
is
* returned by CreateRuleGroup and by ListRuleGroups.
*/
public String getRuleGroupId() {
return this.ruleGroupId;
}
/**
*
* The RuleGroupId
of the RuleGroup that you want to update. RuleGroupId
is
* returned by CreateRuleGroup and by ListRuleGroups.
*
RuleGroupId
of the RuleGroup that you want to update. RuleGroupId
is
* returned by CreateRuleGroup and by ListRuleGroups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateRuleGroupRequest withRuleGroupId(String ruleGroupId) {
setRuleGroupId(ruleGroupId);
return this;
}
/**
*
* An array of RuleGroupUpdate
objects that you want to insert into or delete from a RuleGroup.
*
* You can only insert REGULAR
rules into a rule group.
*
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to a
* WebACL
. In this case you do not use ActivatedRule|Action
. For all other update
* requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
*
RuleGroupUpdate
objects that you want to insert into or delete from a
* RuleGroup.
*
* You can only insert REGULAR
rules into a rule group.
*
*
* An array of
* You can only insert
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
* to a WebACL
. In this case you do not use ActivatedRule|Action
. For all other
* update requests, ActivatedRule|Action
is used instead of
* ActivatedRule|OverrideAction
.
*/
public java.util.ListRuleGroupUpdate
objects that you want to insert into or delete from a RuleGroup.
* REGULAR
rules into a rule group.
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to a
* WebACL
. In this case you do not use ActivatedRule|Action
. For all other update
* requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
* RuleGroupUpdate
objects that you want to insert into or delete from a
* RuleGroup.
* You can only insert REGULAR
rules into a rule group.
*
*
* An array of
* You can only insert
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setUpdates(java.util.Collection)} or {@link #withUpdates(java.util.Collection)} if you want to override
* the existing values.
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to
* a WebACL
. In this case you do not use ActivatedRule|Action
. For all other update
* requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
*/
public void setUpdates(java.util.CollectionRuleGroupUpdate
objects that you want to insert into or delete from a RuleGroup.
* REGULAR
rules into a rule group.
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to a
* WebACL
. In this case you do not use ActivatedRule|Action
. For all other update
* requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
* RuleGroupUpdate
objects that you want to insert into or delete from a
* RuleGroup.
* You can only insert REGULAR
rules into a rule group.
*
*
* An array of
* You can only insert
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to
* a WebACL
. In this case you do not use ActivatedRule|Action
. For all other update
* requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateRuleGroupRequest withUpdates(RuleGroupUpdate... updates) {
if (this.updates == null) {
setUpdates(new java.util.ArrayListRuleGroupUpdate
objects that you want to insert into or delete from a RuleGroup.
* REGULAR
rules into a rule group.
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to a
* WebACL
. In this case you do not use ActivatedRule|Action
. For all other update
* requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
* RuleGroupUpdate
objects that you want to insert into or delete from a
* RuleGroup.
* You can only insert REGULAR
rules into a rule group.
*
*
* The value returned by the most recent call to GetChangeToken.
*
* The value returned by the most recent call to GetChangeToken.
*
* The value returned by the most recent call to GetChangeToken.
* ActivatedRule|OverrideAction
applies only when updating or adding a RuleGroup
to
* a WebACL
. In this case you do not use ActivatedRule|Action
. For all other update
* requests, ActivatedRule|Action
is used instead of ActivatedRule|OverrideAction
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateRuleGroupRequest withUpdates(java.util.Collection