@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReceiptIpFilter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ReceiptIpFilter.Builder |
builder() |
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.
|
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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
return ReceiptFilterPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from policyAsString().
ReceiptFilterPolicypublic 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().
ReceiptFilterPolicypublic final 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.
public ReceiptIpFilter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ReceiptIpFilter.Builder,ReceiptIpFilter>public static ReceiptIpFilter.Builder builder()
public static Class<? extends ReceiptIpFilter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.