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 interfaceReceiptIpFilter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReceiptIpFilter.Builderbuilder()Stringcidr()A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ReceiptFilterPolicypolicy()Indicates whether to block or allow incoming mail from the specified IP addresses.StringpolicyAsString()Indicates whether to block or allow incoming mail from the specified IP addresses.List<SdkField<?>>sdkFields()static Class<? extends ReceiptIpFilter.Builder>serializableBuilderClass()ReceiptIpFilter.BuildertoBuilder()StringtoString()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,
policywill 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,
policywill 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
-