Class SubnetNetworkAclAssociation.Builder

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

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

    • create

      @Stability(Stable) public static SubnetNetworkAclAssociation.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of SubnetNetworkAclAssociation.Builder.
    • networkAcl

      @Stability(Stable) public SubnetNetworkAclAssociation.Builder networkAcl(INetworkAcl networkAcl)
      The Network ACL this association is defined for.

      Parameters:
      networkAcl - The Network ACL this association is defined for. This parameter is required.
      Returns:
      this
    • subnet

      @Stability(Stable) public SubnetNetworkAclAssociation.Builder subnet(ISubnet subnet)
      ID of the Subnet.

      Parameters:
      subnet - ID of the Subnet. This parameter is required.
      Returns:
      this
    • subnetNetworkAclAssociationName

      @Stability(Stable) public SubnetNetworkAclAssociation.Builder subnetNetworkAclAssociationName(String subnetNetworkAclAssociationName)
      The name of the SubnetNetworkAclAssociation.

      It is not recommended to use an explicit name.

      Default: If you don't specify a SubnetNetworkAclAssociationName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

      Parameters:
      subnetNetworkAclAssociationName - The name of the SubnetNetworkAclAssociation. This parameter is required.
      Returns:
      this
    • build

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