public class ReceiptIpFilter
extends java.lang.Object
implements java.io.Serializable
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.
Constructor and Description |
---|
ReceiptIpFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getPolicy()
Indicates whether to block or allow incoming mail from the specified IP
addresses.
|
int |
hashCode() |
void |
setCidr(java.lang.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.
|
void |
setPolicy(ReceiptFilterPolicy policy)
Indicates whether to block or allow incoming mail from the specified IP
addresses.
|
void |
setPolicy(java.lang.String policy)
Indicates whether to block or allow incoming mail from the specified IP
addresses.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReceiptIpFilter |
withCidr(java.lang.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.
|
ReceiptIpFilter |
withPolicy(ReceiptFilterPolicy policy)
Indicates whether to block or allow incoming mail from the specified IP
addresses.
|
ReceiptIpFilter |
withPolicy(java.lang.String policy)
Indicates whether to block or allow incoming mail from the specified IP
addresses.
|
public java.lang.String getPolicy()
Indicates whether to block or allow incoming mail from the specified IP addresses.
Constraints:
Allowed Values: Block, Allow
Indicates whether to block or allow incoming mail from the specified IP addresses.
ReceiptFilterPolicy
public void setPolicy(java.lang.String policy)
Indicates whether to block or allow incoming mail from the specified IP addresses.
Constraints:
Allowed Values: Block, Allow
policy
- Indicates whether to block or allow incoming mail from the specified IP addresses.
ReceiptFilterPolicy
public ReceiptIpFilter withPolicy(java.lang.String policy)
Indicates whether to block or allow incoming mail from the specified IP addresses.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Block, Allow
policy
- Indicates whether to block or allow incoming mail from the specified IP addresses.
ReceiptFilterPolicy
public void setPolicy(ReceiptFilterPolicy policy)
Indicates whether to block or allow incoming mail from the specified IP addresses.
Constraints:
Allowed Values: Block, Allow
policy
- Indicates whether to block or allow incoming mail from the specified IP addresses.
ReceiptFilterPolicy
public ReceiptIpFilter withPolicy(ReceiptFilterPolicy policy)
Indicates whether to block or allow incoming mail from the specified IP addresses.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Block, Allow
policy
- Indicates whether to block or allow incoming mail from the specified IP addresses.
ReceiptFilterPolicy
public java.lang.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.
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.
public void setCidr(java.lang.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.
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.
public ReceiptIpFilter withCidr(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.