Class PrefixList.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.PrefixList.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrefixList>
- Enclosing class:
PrefixList
@Stability(Stable)
public static final class PrefixList.Builder
extends Object
implements software.amazon.jsii.Builder<PrefixList>
A fluent builder for
PrefixList
.-
Method Summary
Modifier and TypeMethodDescriptionaddressFamily
(AddressFamily addressFamily) The address family of the prefix list.build()
static PrefixList.Builder
entries
(List<? extends CfnPrefixList.EntryProperty> entries) The list of entries for the prefix list.maxEntries
(Number maxEntries) The maximum number of entries for the prefix list.prefixListName
(String prefixListName) The name of the prefix list.
-
Method Details
-
create
@Stability(Stable) public static PrefixList.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
PrefixList.Builder
.
-
maxEntries
The maximum number of entries for the prefix list.Default: Automatically-calculated
- Parameters:
maxEntries
- The maximum number of entries for the prefix list. This parameter is required.- Returns:
this
-
addressFamily
The address family of the prefix list.Default: AddressFamily.IP_V4
- Parameters:
addressFamily
- The address family of the prefix list. This parameter is required.- Returns:
this
-
entries
@Stability(Stable) public PrefixList.Builder entries(List<? extends CfnPrefixList.EntryProperty> entries) The list of entries for the prefix list.Default: []
- Parameters:
entries
- The list of entries for the prefix list. This parameter is required.- Returns:
this
-
prefixListName
The name of the prefix list.Default: None
- Parameters:
prefixListName
- The name of the prefix list. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PrefixList>
- Returns:
- a newly built instance of
PrefixList
.
-