Class RuleUpdate
- java.lang.Object
-
- com.amazonaws.services.waf.model.RuleUpdate
-
- All Implemented Interfaces:
Serializable,Cloneable
public class RuleUpdate extends Object implements Serializable, Cloneable
Specifies a
Predicate(such as anIPSet) and indicates whether you want to add it to aRuleor delete it from aRule.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuleUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleUpdateclone()booleanequals(Object obj)StringgetAction()SpecifyINSERTto add aPredicateto aRule.PredicategetPredicate()The ID of thePredicate(such as anIPSet) that you want to add to aRule.inthashCode()voidsetAction(ChangeAction action)SpecifyINSERTto add aPredicateto aRule.voidsetAction(String action)SpecifyINSERTto add aPredicateto aRule.voidsetPredicate(Predicate predicate)The ID of thePredicate(such as anIPSet) that you want to add to aRule.StringtoString()Returns a string representation of this object; useful for testing and debugging.RuleUpdatewithAction(ChangeAction action)SpecifyINSERTto add aPredicateto aRule.RuleUpdatewithAction(String action)SpecifyINSERTto add aPredicateto aRule.RuleUpdatewithPredicate(Predicate predicate)The ID of thePredicate(such as anIPSet) that you want to add to aRule.
-
-
-
Method Detail
-
setAction
public void setAction(String action)
Specify
INSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Parameters:
action- SpecifyINSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- See Also:
ChangeAction
-
getAction
public String getAction()
Specify
INSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Returns:
- Specify
INSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule. - See Also:
ChangeAction
-
withAction
public RuleUpdate withAction(String action)
Specify
INSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Parameters:
action- SpecifyINSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChangeAction
-
setAction
public void setAction(ChangeAction action)
Specify
INSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Parameters:
action- SpecifyINSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- See Also:
ChangeAction
-
withAction
public RuleUpdate withAction(ChangeAction action)
Specify
INSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Parameters:
action- SpecifyINSERTto add aPredicateto aRule. UseDELETEto remove aPredicatefrom aRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChangeAction
-
setPredicate
public void setPredicate(Predicate predicate)
The ID of the
Predicate(such as anIPSet) that you want to add to aRule.- Parameters:
predicate- The ID of thePredicate(such as anIPSet) that you want to add to aRule.
-
getPredicate
public Predicate getPredicate()
The ID of the
Predicate(such as anIPSet) that you want to add to aRule.- Returns:
- The ID of the
Predicate(such as anIPSet) that you want to add to aRule.
-
withPredicate
public RuleUpdate withPredicate(Predicate predicate)
The ID of the
Predicate(such as anIPSet) that you want to add to aRule.- Parameters:
predicate- The ID of thePredicate(such as anIPSet) that you want to add to aRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RuleUpdate clone()
-
-