Class CfnVPNConnectionRoute.Builder

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

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

    • create

      @Stability(Stable) public static CfnVPNConnectionRoute.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 CfnVPNConnectionRoute.Builder.
    • destinationCidrBlock

      @Stability(Stable) public CfnVPNConnectionRoute.Builder destinationCidrBlock(String destinationCidrBlock)
      The CIDR block associated with the local subnet of the customer network.

      Parameters:
      destinationCidrBlock - The CIDR block associated with the local subnet of the customer network. This parameter is required.
      Returns:
      this
    • vpnConnectionId

      @Stability(Stable) public CfnVPNConnectionRoute.Builder vpnConnectionId(String vpnConnectionId)
      The ID of the VPN connection.

      Parameters:
      vpnConnectionId - The ID of the VPN connection. This parameter is required.
      Returns:
      this
    • build

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