Class CfnReceiptFilter.IpFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnReceiptFilter.IpFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptFilter.IpFilterProperty>
- Enclosing interface:
CfnReceiptFilter.IpFilterProperty
@Stability(Stable)
public static final class CfnReceiptFilter.IpFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptFilter.IpFilterProperty>
A builder for
CfnReceiptFilter.IpFilterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnReceiptFilter.IpFilterProperty.getCidr()
Sets the value ofCfnReceiptFilter.IpFilterProperty.getPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofCfnReceiptFilter.IpFilterProperty.getCidr()
- Parameters:
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 .- Returns:
this
-
policy
Sets the value ofCfnReceiptFilter.IpFilterProperty.getPolicy()
- Parameters:
policy
- Indicates whether to block or allow incoming mail from the specified IP addresses. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReceiptFilter.IpFilterProperty>
- Returns:
- a new instance of
CfnReceiptFilter.IpFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-