@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafv2RulesActionDetails extends Object implements Serializable, Cloneable, StructuredPojo
The action that 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 |
---|
AwsWafv2RulesActionDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafv2RulesActionDetails |
clone() |
boolean |
equals(Object obj) |
AwsWafv2ActionAllowDetails |
getAllow()
Instructs WAF to allow the web request.
|
AwsWafv2ActionBlockDetails |
getBlock()
Instructs WAF to block the web request.
|
AwsWafv2RulesActionCaptchaDetails |
getCaptcha()
Instructs WAF to run a CAPTCHA check against the web request.
|
AwsWafv2RulesActionCountDetails |
getCount()
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the
web ACL.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllow(AwsWafv2ActionAllowDetails allow)
Instructs WAF to allow the web request.
|
void |
setBlock(AwsWafv2ActionBlockDetails block)
Instructs WAF to block the web request.
|
void |
setCaptcha(AwsWafv2RulesActionCaptchaDetails captcha)
Instructs WAF to run a CAPTCHA check against the web request.
|
void |
setCount(AwsWafv2RulesActionCountDetails count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the
web ACL.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafv2RulesActionDetails |
withAllow(AwsWafv2ActionAllowDetails allow)
Instructs WAF to allow the web request.
|
AwsWafv2RulesActionDetails |
withBlock(AwsWafv2ActionBlockDetails block)
Instructs WAF to block the web request.
|
AwsWafv2RulesActionDetails |
withCaptcha(AwsWafv2RulesActionCaptchaDetails captcha)
Instructs WAF to run a CAPTCHA check against the web request.
|
AwsWafv2RulesActionDetails |
withCount(AwsWafv2RulesActionCountDetails count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the
web ACL.
|
public void setAllow(AwsWafv2ActionAllowDetails allow)
Instructs WAF to allow the web request.
allow
- Instructs WAF to allow the web request.public AwsWafv2ActionAllowDetails getAllow()
Instructs WAF to allow the web request.
public AwsWafv2RulesActionDetails withAllow(AwsWafv2ActionAllowDetails allow)
Instructs WAF to allow the web request.
allow
- Instructs WAF to allow the web request.public void setBlock(AwsWafv2ActionBlockDetails block)
Instructs WAF to block the web request.
block
- Instructs WAF to block the web request.public AwsWafv2ActionBlockDetails getBlock()
Instructs WAF to block the web request.
public AwsWafv2RulesActionDetails withBlock(AwsWafv2ActionBlockDetails block)
Instructs WAF to block the web request.
block
- Instructs WAF to block the web request.public void setCaptcha(AwsWafv2RulesActionCaptchaDetails captcha)
Instructs WAF to run a CAPTCHA check against the web request.
captcha
- Instructs WAF to run a CAPTCHA check against the web request.public AwsWafv2RulesActionCaptchaDetails getCaptcha()
Instructs WAF to run a CAPTCHA check against the web request.
public AwsWafv2RulesActionDetails withCaptcha(AwsWafv2RulesActionCaptchaDetails captcha)
Instructs WAF to run a CAPTCHA check against the web request.
captcha
- Instructs WAF to run a CAPTCHA check against the web request.public void setCount(AwsWafv2RulesActionCountDetails count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
count
- Instructs WAF to count the web request and then continue evaluating the request using the remaining rules
in the web ACL.public AwsWafv2RulesActionCountDetails getCount()
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
public AwsWafv2RulesActionDetails withCount(AwsWafv2RulesActionCountDetails count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
count
- Instructs WAF to count the web request and then continue evaluating the request using the remaining rules
in the web ACL.public String toString()
toString
in class Object
Object.toString()
public AwsWafv2RulesActionDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.