Class ReceiptIpFilter

java.lang.Object
com.amazonaws.services.simpleemail.model.ReceiptIpFilter
All Implemented Interfaces:
Serializable, Cloneable

public class ReceiptIpFilter extends Object implements Serializable, Cloneable

A receipt IP address filter enables you to specify whether to accept or reject mail originating from an IP address or range of IP addresses.

For information about setting up IP address filters, see the Amazon SES Developer Guide.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    A single IP address or a range of IP addresses that you want to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation.
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    int
     
    void
    A single IP address or a range of IP addresses that you want to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation.
    void
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    void
    setPolicy(String policy)
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    Returns a string representation of this object; useful for testing and debugging.
    A single IP address or a range of IP addresses that you want to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation.
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    Indicates whether to block or allow incoming mail from the specified IP addresses.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ReceiptIpFilter

      public ReceiptIpFilter()
  • Method Details

    • setPolicy

      public void setPolicy(String policy)

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

      Parameters:
      policy - Indicates whether to block or allow incoming mail from the specified IP addresses.
      See Also:
    • getPolicy

      public String getPolicy()

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

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

      public ReceiptIpFilter withPolicy(String policy)

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

      Parameters:
      policy - Indicates whether to block or allow incoming mail from the specified IP addresses.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setPolicy

      public void setPolicy(ReceiptFilterPolicy policy)

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

      Parameters:
      policy - Indicates whether to block or allow incoming mail from the specified IP addresses.
      See Also:
    • withPolicy

      public ReceiptIpFilter withPolicy(ReceiptFilterPolicy policy)

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

      Parameters:
      policy - Indicates whether to block or allow incoming mail from the specified IP addresses.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setCidr

      public void setCidr(String cidr)

      A single IP address or a range of IP addresses that you want 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.

      Parameters:
      cidr - A single IP address or a range of IP addresses that you want 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.
    • getCidr

      public String getCidr()

      A single IP address or a range of IP addresses that you want 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 that you want 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.
    • withCidr

      public ReceiptIpFilter withCidr(String cidr)

      A single IP address or a range of IP addresses that you want 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.

      Parameters:
      cidr - A single IP address or a range of IP addresses that you want 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:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ReceiptIpFilter clone()
      Overrides:
      clone in class Object