Class PrefixListProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.PrefixListProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrefixListProps>
- Enclosing interface:
PrefixListProps
@Stability(Stable)
public static final class PrefixListProps.Builder
extends Object
implements software.amazon.jsii.Builder<PrefixListProps>
A builder for
PrefixListProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddressFamily
(AddressFamily addressFamily) Sets the value ofPrefixListProps.getAddressFamily()
build()
Builds the configured instance.entries
(List<? extends CfnPrefixList.EntryProperty> entries) Sets the value ofPrefixListProps.getEntries()
maxEntries
(Number maxEntries) Sets the value ofPrefixListOptions.getMaxEntries()
prefixListName
(String prefixListName) Sets the value ofPrefixListProps.getPrefixListName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addressFamily
Sets the value ofPrefixListProps.getAddressFamily()
- Parameters:
addressFamily
- The address family of the prefix list.- Returns:
this
-
entries
@Stability(Stable) public PrefixListProps.Builder entries(List<? extends CfnPrefixList.EntryProperty> entries) Sets the value ofPrefixListProps.getEntries()
- Parameters:
entries
- The list of entries for the prefix list.- Returns:
this
-
prefixListName
Sets the value ofPrefixListProps.getPrefixListName()
- Parameters:
prefixListName
- The name of the prefix list.- Returns:
this
-
maxEntries
Sets the value ofPrefixListOptions.getMaxEntries()
- Parameters:
maxEntries
- The maximum number of entries for the prefix list.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PrefixListProps>
- Returns:
- a new instance of
PrefixListProps
- Throws:
NullPointerException
- if any required attribute was not provided
-