@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleAction extends Object implements Serializable, Cloneable, StructuredPojo
The action that AWS WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
Constructor and Description |
---|
RuleAction() |
Modifier and Type | Method and Description |
---|---|
RuleAction |
clone() |
boolean |
equals(Object obj) |
AllowAction |
getAllow()
Instructs AWS WAF to allow the web request.
|
BlockAction |
getBlock()
Instructs AWS WAF to block the web request.
|
CountAction |
getCount()
Instructs AWS WAF to count the web request and allow it.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllow(AllowAction allow)
Instructs AWS WAF to allow the web request.
|
void |
setBlock(BlockAction block)
Instructs AWS WAF to block the web request.
|
void |
setCount(CountAction count)
Instructs AWS WAF to count the web request and allow it.
|
String |
toString()
Returns a string representation of this object.
|
RuleAction |
withAllow(AllowAction allow)
Instructs AWS WAF to allow the web request.
|
RuleAction |
withBlock(BlockAction block)
Instructs AWS WAF to block the web request.
|
RuleAction |
withCount(CountAction count)
Instructs AWS WAF to count the web request and allow it.
|
public void setBlock(BlockAction block)
Instructs AWS WAF to block the web request.
block
- Instructs AWS WAF to block the web request.public BlockAction getBlock()
Instructs AWS WAF to block the web request.
public RuleAction withBlock(BlockAction block)
Instructs AWS WAF to block the web request.
block
- Instructs AWS WAF to block the web request.public void setAllow(AllowAction allow)
Instructs AWS WAF to allow the web request.
allow
- Instructs AWS WAF to allow the web request.public AllowAction getAllow()
Instructs AWS WAF to allow the web request.
public RuleAction withAllow(AllowAction allow)
Instructs AWS WAF to allow the web request.
allow
- Instructs AWS WAF to allow the web request.public void setCount(CountAction count)
Instructs AWS WAF to count the web request and allow it.
count
- Instructs AWS WAF to count the web request and allow it.public CountAction getCount()
Instructs AWS WAF to count the web request and allow it.
public RuleAction withCount(CountAction count)
Instructs AWS WAF to count the web request and allow it.
count
- Instructs AWS WAF to count the web request and allow it.public String toString()
toString
in class Object
Object.toString()
public RuleAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.