public class RuleUpdate
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Specifies a Predicate
(such as an IPSet
) and
indicates whether you want to add it to a Rule
or delete it from
a Rule
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
action
Specify
INSERT to add a Predicate to a
Rule . |
private Predicate |
predicate
The ID of the
Predicate (such as an IPSet ) that
you want to add to a Rule . |
Constructor and Description |
---|
RuleUpdate() |
Modifier and Type | Method and Description |
---|---|
RuleUpdate |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAction()
Specify
INSERT to add a Predicate to a
Rule . |
Predicate |
getPredicate()
The ID of the
Predicate (such as an IPSet ) that
you want to add to a Rule . |
int |
hashCode() |
void |
setAction(ChangeAction action)
Specify
INSERT to add a Predicate to a
Rule . |
void |
setAction(java.lang.String action)
Specify
INSERT to add a Predicate to a
Rule . |
void |
setPredicate(Predicate predicate)
The ID of the
Predicate (such as an IPSet ) that
you want to add to a Rule . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RuleUpdate |
withAction(ChangeAction action)
Specify
INSERT to add a Predicate to a
Rule . |
RuleUpdate |
withAction(java.lang.String action)
Specify
INSERT to add a Predicate to a
Rule . |
RuleUpdate |
withPredicate(Predicate predicate)
The ID of the
Predicate (such as an IPSet ) that
you want to add to a Rule . |
private java.lang.String action
Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.
private Predicate predicate
The ID of the Predicate
(such as an IPSet
) that
you want to add to a Rule
.
public void setAction(java.lang.String action)
Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.
action
- Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.ChangeAction
public java.lang.String getAction()
Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.
INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.ChangeAction
public RuleUpdate withAction(java.lang.String action)
Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.
action
- Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.ChangeAction
public void setAction(ChangeAction action)
Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.
action
- Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.ChangeAction
public RuleUpdate withAction(ChangeAction action)
Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.
action
- Specify INSERT
to add a Predicate
to a
Rule
. Use DELETE
to remove a
Predicate
from a Rule
.ChangeAction
public void setPredicate(Predicate predicate)
The ID of the Predicate
(such as an IPSet
) that
you want to add to a Rule
.
predicate
- The ID of the Predicate
(such as an
IPSet
) that you want to add to a Rule
.public Predicate getPredicate()
The ID of the Predicate
(such as an IPSet
) that
you want to add to a Rule
.
Predicate
(such as an
IPSet
) that you want to add to a Rule
.public RuleUpdate withPredicate(Predicate predicate)
The ID of the Predicate
(such as an IPSet
) that
you want to add to a Rule
.
predicate
- The ID of the Predicate
(such as an
IPSet
) that you want to add to a Rule
.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RuleUpdate clone()
clone
in class java.lang.Object