Class ReceiptIpFilter

    • Method Detail

      • policyAsString

        public final String policyAsString()

        Indicates whether to block or allow incoming mail from the specified IP addresses.

        If the service returns an enum value that is not available in the current SDK version, policy will return ReceiptFilterPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from policyAsString().

        Returns:
        Indicates whether to block or allow incoming mail from the specified IP addresses.
        See Also:
        ReceiptFilterPolicy
      • cidr

        public final String cidr()

        A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317.

        Returns:
        A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317.
      • 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)