Class CfnPrefixList.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.CfnPrefixList.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrefixList>
Enclosing class:
CfnPrefixList

@Stability(Stable) public static final class CfnPrefixList.Builder extends Object implements software.amazon.jsii.Builder<CfnPrefixList>
A fluent builder for CfnPrefixList.
  • Method Details

    • create

      @Stability(Stable) public static CfnPrefixList.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnPrefixList.Builder.
    • addressFamily

      @Stability(Stable) public CfnPrefixList.Builder addressFamily(String addressFamily)
      The IP address type.

      Valid Values: IPv4 | IPv6

      Parameters:
      addressFamily - The IP address type. This parameter is required.
      Returns:
      this
    • maxEntries

      @Stability(Stable) public CfnPrefixList.Builder maxEntries(Number maxEntries)
      The maximum number of entries for the prefix list.

      Parameters:
      maxEntries - The maximum number of entries for the prefix list. This parameter is required.
      Returns:
      this
    • prefixListName

      @Stability(Stable) public CfnPrefixList.Builder prefixListName(String prefixListName)
      A name for the prefix list.

      Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws .

      Parameters:
      prefixListName - A name for the prefix list. This parameter is required.
      Returns:
      this
    • entries

      @Stability(Stable) public CfnPrefixList.Builder entries(IResolvable entries)
      One or more entries for the prefix list.

      Parameters:
      entries - One or more entries for the prefix list. This parameter is required.
      Returns:
      this
    • entries

      @Stability(Stable) public CfnPrefixList.Builder entries(List<? extends Object> entries)
      One or more entries for the prefix list.

      Parameters:
      entries - One or more entries for the prefix list. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnPrefixList.Builder tags(List<? extends CfnTag> tags)
      The tags for the prefix list.

      Parameters:
      tags - The tags for the prefix list. This parameter is required.
      Returns:
      this
    • build

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