@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleAction 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 |
---|
RuleAction() |
Modifier and Type | Method and Description |
---|---|
RuleAction |
clone() |
boolean |
equals(Object obj) |
AllowAction |
getAllow()
Instructs WAF to allow the web request.
|
BlockAction |
getBlock()
Instructs WAF to block the web request.
|
CaptchaAction |
getCaptcha()
Instructs WAF to run a
CAPTCHA check against the web request. |
ChallengeAction |
getChallenge()
Instructs WAF to run a
Challenge check against the web request. |
CountAction |
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(AllowAction allow)
Instructs WAF to allow the web request.
|
void |
setBlock(BlockAction block)
Instructs WAF to block the web request.
|
void |
setCaptcha(CaptchaAction captcha)
Instructs WAF to run a
CAPTCHA check against the web request. |
void |
setChallenge(ChallengeAction challenge)
Instructs WAF to run a
Challenge check against the web request. |
void |
setCount(CountAction 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.
|
RuleAction |
withAllow(AllowAction allow)
Instructs WAF to allow the web request.
|
RuleAction |
withBlock(BlockAction block)
Instructs WAF to block the web request.
|
RuleAction |
withCaptcha(CaptchaAction captcha)
Instructs WAF to run a
CAPTCHA check against the web request. |
RuleAction |
withChallenge(ChallengeAction challenge)
Instructs WAF to run a
Challenge check against the web request. |
RuleAction |
withCount(CountAction count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the
web ACL.
|
public void setBlock(BlockAction block)
Instructs WAF to block the web request.
block
- Instructs WAF to block the web request.public BlockAction getBlock()
Instructs WAF to block the web request.
public RuleAction withBlock(BlockAction block)
Instructs WAF to block the web request.
block
- Instructs WAF to block the web request.public void setAllow(AllowAction allow)
Instructs WAF to allow the web request.
allow
- Instructs WAF to allow the web request.public AllowAction getAllow()
Instructs WAF to allow the web request.
public RuleAction withAllow(AllowAction allow)
Instructs WAF to allow the web request.
allow
- Instructs WAF to allow the web request.public void setCount(CountAction 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 CountAction getCount()
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
public RuleAction withCount(CountAction 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 void setCaptcha(CaptchaAction 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 CaptchaAction getCaptcha()
Instructs WAF to run a CAPTCHA
check against the web request.
CAPTCHA
check against the web request.public RuleAction withCaptcha(CaptchaAction 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 setChallenge(ChallengeAction challenge)
Instructs WAF to run a Challenge
check against the web request.
challenge
- Instructs WAF to run a Challenge
check against the web request.public ChallengeAction getChallenge()
Instructs WAF to run a Challenge
check against the web request.
Challenge
check against the web request.public RuleAction withChallenge(ChallengeAction challenge)
Instructs WAF to run a Challenge
check against the web request.
challenge
- Instructs WAF to run a Challenge
check against the web request.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.