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 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

      @Stability(Stable) public PrefixList.Builder maxEntries(Number 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

      @Stability(Stable) public PrefixList.Builder addressFamily(AddressFamily 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

      @Stability(Stable) public PrefixList.Builder prefixListName(String prefixListName)
      The name of the prefix list.

      Default: None

      Parameters:
      prefixListName - The name of the prefix list. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public PrefixList build()
      Specified by:
      build in interface software.amazon.jsii.Builder<PrefixList>
      Returns:
      a newly built instance of PrefixList.