@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupUpdate extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an ActivatedRule
and indicates whether you want to add it to a RuleGroup
or
delete it from a RuleGroup
.
Constructor and Description |
---|
RuleGroupUpdate() |
Modifier and Type | Method and Description |
---|---|
RuleGroupUpdate |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
Specify
INSERT to add an ActivatedRule to a RuleGroup . |
ActivatedRule |
getActivatedRule()
The
ActivatedRule object specifies a Rule that you want to insert or delete, the
priority of the Rule in the WebACL , and the action that you want AWS WAF to take when a
web request matches the Rule (ALLOW , BLOCK , or COUNT ). |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
Specify
INSERT to add an ActivatedRule to a RuleGroup . |
void |
setActivatedRule(ActivatedRule activatedRule)
The
ActivatedRule object specifies a Rule that you want to insert or delete, the
priority of the Rule in the WebACL , and the action that you want AWS WAF to take when a
web request matches the Rule (ALLOW , BLOCK , or COUNT ). |
String |
toString()
Returns a string representation of this object.
|
RuleGroupUpdate |
withAction(ChangeAction action)
Specify
INSERT to add an ActivatedRule to a RuleGroup . |
RuleGroupUpdate |
withAction(String action)
Specify
INSERT to add an ActivatedRule to a RuleGroup . |
RuleGroupUpdate |
withActivatedRule(ActivatedRule activatedRule)
The
ActivatedRule object specifies a Rule that you want to insert or delete, the
priority of the Rule in the WebACL , and the action that you want AWS WAF to take when a
web request matches the Rule (ALLOW , BLOCK , or COUNT ). |
public void setAction(String action)
Specify INSERT
to add an ActivatedRule
to a RuleGroup
. Use
DELETE
to remove an ActivatedRule
from a RuleGroup
.
action
- Specify INSERT
to add an ActivatedRule
to a RuleGroup
. Use
DELETE
to remove an ActivatedRule
from a RuleGroup
.ChangeAction
public String getAction()
Specify INSERT
to add an ActivatedRule
to a RuleGroup
. Use
DELETE
to remove an ActivatedRule
from a RuleGroup
.
INSERT
to add an ActivatedRule
to a RuleGroup
. Use
DELETE
to remove an ActivatedRule
from a RuleGroup
.ChangeAction
public RuleGroupUpdate withAction(String action)
Specify INSERT
to add an ActivatedRule
to a RuleGroup
. Use
DELETE
to remove an ActivatedRule
from a RuleGroup
.
action
- Specify INSERT
to add an ActivatedRule
to a RuleGroup
. Use
DELETE
to remove an ActivatedRule
from a RuleGroup
.ChangeAction
public RuleGroupUpdate withAction(ChangeAction action)
Specify INSERT
to add an ActivatedRule
to a RuleGroup
. Use
DELETE
to remove an ActivatedRule
from a RuleGroup
.
action
- Specify INSERT
to add an ActivatedRule
to a RuleGroup
. Use
DELETE
to remove an ActivatedRule
from a RuleGroup
.ChangeAction
public void setActivatedRule(ActivatedRule activatedRule)
The ActivatedRule
object specifies a Rule
that you want to insert or delete, the
priority of the Rule
in the WebACL
, and the action that you want AWS WAF to take when a
web request matches the Rule
(ALLOW
, BLOCK
, or COUNT
).
activatedRule
- The ActivatedRule
object specifies a Rule
that you want to insert or delete, the
priority of the Rule
in the WebACL
, and the action that you want AWS WAF to take
when a web request matches the Rule
(ALLOW
, BLOCK
, or
COUNT
).public ActivatedRule getActivatedRule()
The ActivatedRule
object specifies a Rule
that you want to insert or delete, the
priority of the Rule
in the WebACL
, and the action that you want AWS WAF to take when a
web request matches the Rule
(ALLOW
, BLOCK
, or COUNT
).
ActivatedRule
object specifies a Rule
that you want to insert or delete,
the priority of the Rule
in the WebACL
, and the action that you want AWS WAF to
take when a web request matches the Rule
(ALLOW
, BLOCK
, or
COUNT
).public RuleGroupUpdate withActivatedRule(ActivatedRule activatedRule)
The ActivatedRule
object specifies a Rule
that you want to insert or delete, the
priority of the Rule
in the WebACL
, and the action that you want AWS WAF to take when a
web request matches the Rule
(ALLOW
, BLOCK
, or COUNT
).
activatedRule
- The ActivatedRule
object specifies a Rule
that you want to insert or delete, the
priority of the Rule
in the WebACL
, and the action that you want AWS WAF to take
when a web request matches the Rule
(ALLOW
, BLOCK
, or
COUNT
).public String toString()
toString
in class Object
Object.toString()
public RuleGroupUpdate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.