@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DefaultAction extends Object implements Serializable, Cloneable, StructuredPojo
This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.
In a WebACL
, this is the action that you want AWS 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 count is not allowed.
Constructor and Description |
---|
DefaultAction() |
Modifier and Type | Method and Description |
---|---|
DefaultAction |
clone() |
boolean |
equals(Object obj) |
AllowAction |
getAllow()
Specifies that AWS WAF should allow requests by default.
|
BlockAction |
getBlock()
Specifies that AWS 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 AWS WAF should allow requests by default.
|
void |
setBlock(BlockAction block)
Specifies that AWS WAF should block requests by default.
|
String |
toString()
Returns a string representation of this object.
|
DefaultAction |
withAllow(AllowAction allow)
Specifies that AWS WAF should allow requests by default.
|
DefaultAction |
withBlock(BlockAction block)
Specifies that AWS WAF should block requests by default.
|
public void setBlock(BlockAction block)
Specifies that AWS WAF should block requests by default.
block
- Specifies that AWS WAF should block requests by default.public BlockAction getBlock()
Specifies that AWS WAF should block requests by default.
public DefaultAction withBlock(BlockAction block)
Specifies that AWS WAF should block requests by default.
block
- Specifies that AWS WAF should block requests by default.public void setAllow(AllowAction allow)
Specifies that AWS WAF should allow requests by default.
allow
- Specifies that AWS WAF should allow requests by default.public AllowAction getAllow()
Specifies that AWS WAF should allow requests by default.
public DefaultAction withAllow(AllowAction allow)
Specifies that AWS WAF should allow requests by default.
allow
- Specifies that AWS 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.