public static final class CfnReceiptFilter.IpFilterProperty.Builder
extends java.lang.Object
CfnReceiptFilter.IpFilterProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnReceiptFilter.IpFilterProperty |
build()
Builds the configured instance.
|
CfnReceiptFilter.IpFilterProperty.Builder |
cidr(java.lang.String cidr)
Sets the value of
CfnReceiptFilter.IpFilterProperty.getCidr() |
CfnReceiptFilter.IpFilterProperty.Builder |
policy(java.lang.String policy)
Sets the value of
CfnReceiptFilter.IpFilterProperty.getPolicy() |
public CfnReceiptFilter.IpFilterProperty.Builder cidr(java.lang.String cidr)
CfnReceiptFilter.IpFilterProperty.getCidr()
cidr
- A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. This parameter is required.
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 .this
public CfnReceiptFilter.IpFilterProperty.Builder policy(java.lang.String policy)
CfnReceiptFilter.IpFilterProperty.getPolicy()
policy
- Indicates whether to block or allow incoming mail from the specified IP addresses. This parameter is required.this
public CfnReceiptFilter.IpFilterProperty build()
CfnReceiptFilter.IpFilterProperty
java.lang.NullPointerException
- if any required attribute was not provided