Class RuleAction

    • Method Detail

      • block

        public final BlockAction block()

        Instructs WAF to block the web request.

        Returns:
        Instructs WAF to block the web request.
      • allow

        public final AllowAction allow()

        Instructs WAF to allow the web request.

        Returns:
        Instructs WAF to allow the web request.
      • count

        public final CountAction count()

        Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.

        Returns:
        Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
      • captcha

        public final CaptchaAction captcha()

        Instructs WAF to run a CAPTCHA check against the web request.

        Returns:
        Instructs WAF to run a CAPTCHA check against the web request.
      • challenge

        public final ChallengeAction challenge()

        Instructs WAF to run a Challenge check against the web request.

        Returns:
        Instructs WAF to run a Challenge check against the web request.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)