Class ReceiptIpFilter
- java.lang.Object
-
- software.amazon.awssdk.services.ses.model.ReceiptIpFilter
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ReceiptIpFilter.Builder,ReceiptIpFilter>
@Generated("software.amazon.awssdk:codegen") public final class ReceiptIpFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReceiptIpFilter.Builder,ReceiptIpFilter>
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReceiptIpFilter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReceiptIpFilter.Builder
builder()
String
cidr()
A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
ReceiptFilterPolicy
policy()
Indicates whether to block or allow incoming mail from the specified IP addresses.String
policyAsString()
Indicates whether to block or allow incoming mail from the specified IP addresses.List<SdkField<?>>
sdkFields()
static Class<? extends ReceiptIpFilter.Builder>
serializableBuilderClass()
ReceiptIpFilter.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policy
public final ReceiptFilterPolicy policy()
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 returnReceiptFilterPolicy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompolicyAsString()
.- Returns:
- Indicates whether to block or allow incoming mail from the specified IP addresses.
- See Also:
ReceiptFilterPolicy
-
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 returnReceiptFilterPolicy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompolicyAsString()
.- 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.
-
toBuilder
public ReceiptIpFilter.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ReceiptIpFilter.Builder,ReceiptIpFilter>
-
builder
public static ReceiptIpFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReceiptIpFilter.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
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.
-
-