Class CfnPrefixListProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnPrefixListProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrefixListProps>
- Enclosing interface:
- CfnPrefixListProps
@Stability(Stable)
public static final class CfnPrefixListProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrefixListProps>
A builder for
CfnPrefixListProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressFamily(String addressFamily) Sets the value ofCfnPrefixListProps.getAddressFamily()build()Builds the configured instance.Sets the value ofCfnPrefixListProps.getEntries()entries(IResolvable entries) Sets the value ofCfnPrefixListProps.getEntries()maxEntries(Number maxEntries) Sets the value ofCfnPrefixListProps.getMaxEntries()prefixListName(String prefixListName) Sets the value ofCfnPrefixListProps.getPrefixListName()Sets the value ofCfnPrefixListProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addressFamily
Sets the value ofCfnPrefixListProps.getAddressFamily()- Parameters:
addressFamily- The IP address type. This parameter is required. Valid Values:IPv4|IPv6- Returns:
this
-
maxEntries
Sets the value ofCfnPrefixListProps.getMaxEntries()- Parameters:
maxEntries- The maximum number of entries for the prefix list. This parameter is required.- Returns:
this
-
prefixListName
Sets the value ofCfnPrefixListProps.getPrefixListName()- Parameters:
prefixListName- A name for the prefix list. This parameter is required. Constraints: Up to 255 characters in length. The name cannot start withcom.amazonaws.- Returns:
this
-
entries
Sets the value ofCfnPrefixListProps.getEntries()- Parameters:
entries- One or more entries for the prefix list.- Returns:
this
-
entries
Sets the value ofCfnPrefixListProps.getEntries()- Parameters:
entries- One or more entries for the prefix list.- Returns:
this
-
tags
Sets the value ofCfnPrefixListProps.getTags()- Parameters:
tags- The tags for the prefix list.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrefixListProps>- Returns:
- a new instance of
CfnPrefixListProps - Throws:
NullPointerException- if any required attribute was not provided
-