public class RuleUpdate extends Object implements Serializable, 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
.
Constructor and Description |
---|
RuleUpdate() |
Modifier and Type | Method and Description |
---|---|
RuleUpdate |
clone() |
boolean |
equals(Object obj) |
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(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 . |
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(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 . |
public void setAction(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 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(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 String toString()
toString
in class Object
Object.toString()
public RuleUpdate clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.