@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafv2WebAclActionDetails extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the action that Amazon CloudFront or WAF takes when a web request matches the conditions in the rule.
Constructor and Description |
---|
AwsWafv2WebAclActionDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafv2WebAclActionDetails |
clone() |
boolean |
equals(Object obj) |
AwsWafv2ActionAllowDetails |
getAllow()
Specifies that WAF should allow requests by default.
|
AwsWafv2ActionBlockDetails |
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(AwsWafv2ActionAllowDetails allow)
Specifies that WAF should allow requests by default.
|
void |
setBlock(AwsWafv2ActionBlockDetails block)
Specifies that WAF should block requests by default.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafv2WebAclActionDetails |
withAllow(AwsWafv2ActionAllowDetails allow)
Specifies that WAF should allow requests by default.
|
AwsWafv2WebAclActionDetails |
withBlock(AwsWafv2ActionBlockDetails block)
Specifies that WAF should block requests by default.
|
public void setAllow(AwsWafv2ActionAllowDetails allow)
Specifies that WAF should allow requests by default.
allow
- Specifies that WAF should allow requests by default.public AwsWafv2ActionAllowDetails getAllow()
Specifies that WAF should allow requests by default.
public AwsWafv2WebAclActionDetails withAllow(AwsWafv2ActionAllowDetails allow)
Specifies that WAF should allow requests by default.
allow
- Specifies that WAF should allow requests by default.public void setBlock(AwsWafv2ActionBlockDetails block)
Specifies that WAF should block requests by default.
block
- Specifies that WAF should block requests by default.public AwsWafv2ActionBlockDetails getBlock()
Specifies that WAF should block requests by default.
public AwsWafv2WebAclActionDetails withBlock(AwsWafv2ActionBlockDetails block)
Specifies that WAF should block requests by default.
block
- Specifies that WAF should block requests by default.public String toString()
toString
in class Object
Object.toString()
public AwsWafv2WebAclActionDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.