@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DefaultAction extends Object implements Serializable, Cloneable, StructuredPojo
In a WebACL, this is the action that you want WAF to perform when a web request doesn't match any of the rules
in the WebACL
. The default action must be a terminating action, so you can't use count.
Constructor and Description |
---|
DefaultAction() |
Modifier and Type | Method and Description |
---|---|
DefaultAction |
clone() |
boolean |
equals(Object obj) |
AllowAction |
getAllow()
Specifies that WAF should allow requests by default.
|
BlockAction |
getBlock()
Specifies that WAF should block requests by default.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllow(AllowAction allow)
Specifies that WAF should allow requests by default.
|
void |
setBlock(BlockAction block)
Specifies that WAF should block requests by default.
|
String |
toString()
Returns a string representation of this object.
|
DefaultAction |
withAllow(AllowAction allow)
Specifies that WAF should allow requests by default.
|
DefaultAction |
withBlock(BlockAction block)
Specifies that WAF should block requests by default.
|
public void setBlock(BlockAction block)
Specifies that WAF should block requests by default.
block
- Specifies that WAF should block requests by default.public BlockAction getBlock()
Specifies that WAF should block requests by default.
public DefaultAction withBlock(BlockAction block)
Specifies that WAF should block requests by default.
block
- Specifies that WAF should block requests by default.public void setAllow(AllowAction allow)
Specifies that WAF should allow requests by default.
allow
- Specifies that WAF should allow requests by default.public AllowAction getAllow()
Specifies that WAF should allow requests by default.
public DefaultAction withAllow(AllowAction allow)
Specifies that WAF should allow requests by default.
allow
- Specifies that WAF should allow requests by default.public String toString()
toString
in class Object
Object.toString()
public DefaultAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.