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 aRule
or 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 RuleUpdate
clone()
boolean
equals(Object obj)
String
getAction()
SpecifyINSERT
to add aPredicate
to aRule
.Predicate
getPredicate()
The ID of thePredicate
(such as anIPSet
) that you want to add to aRule
.int
hashCode()
void
setAction(ChangeAction action)
SpecifyINSERT
to add aPredicate
to aRule
.void
setAction(String action)
SpecifyINSERT
to add aPredicate
to aRule
.void
setPredicate(Predicate predicate)
The ID of thePredicate
(such as anIPSet
) that you want to add to aRule
.String
toString()
Returns a string representation of this object; useful for testing and debugging.RuleUpdate
withAction(ChangeAction action)
SpecifyINSERT
to add aPredicate
to aRule
.RuleUpdate
withAction(String action)
SpecifyINSERT
to add aPredicate
to aRule
.RuleUpdate
withPredicate(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
INSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Parameters:
action
- SpecifyINSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- See Also:
ChangeAction
-
getAction
public String getAction()
Specify
INSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Returns:
- Specify
INSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
. - See Also:
ChangeAction
-
withAction
public RuleUpdate withAction(String action)
Specify
INSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Parameters:
action
- SpecifyINSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from 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
INSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Parameters:
action
- SpecifyINSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- See Also:
ChangeAction
-
withAction
public RuleUpdate withAction(ChangeAction action)
Specify
INSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from aRule
.- Parameters:
action
- SpecifyINSERT
to add aPredicate
to aRule
. UseDELETE
to remove aPredicate
from 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RuleUpdate clone()
-
-