Class IPSetReferenceStatement

    • Method Detail

      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the IPSet that this statement references.

        Returns:
        The Amazon Resource Name (ARN) of the IPSet that this statement references.
      • ipSetForwardedIPConfig

        public final IPSetForwardedIPConfig ipSetForwardedIPConfig()

        The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

        If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.

        Returns:
        The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

        If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.

      • 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)