Class RouteProps.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.alpha.RouteProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<RouteProps>
Enclosing interface:
RouteProps

@Stability(Experimental) public static final class RouteProps.Builder extends Object implements software.amazon.jsii.Builder<RouteProps>
A builder for RouteProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • destination

      @Stability(Experimental) public RouteProps.Builder destination(String destination)
      Sets the value of RouteProps.getDestination()
      Parameters:
      destination - The IPv4 or IPv6 CIDR block used for the destination match. This parameter is required. Routing decisions are based on the most specific match.
      Returns:
      this
    • routeTable

      @Stability(Experimental) public RouteProps.Builder routeTable(IRouteTable routeTable)
      Sets the value of RouteProps.getRouteTable()
      Parameters:
      routeTable - The ID of the route table for the route. This parameter is required.
      Returns:
      this
    • target

      @Stability(Experimental) public RouteProps.Builder target(RouteTargetType target)
      Sets the value of RouteProps.getTarget()
      Parameters:
      target - The gateway or endpoint targeted by the route. This parameter is required.
      Returns:
      this
    • routeName

      @Stability(Experimental) public RouteProps.Builder routeName(String routeName)
      Sets the value of RouteProps.getRouteName()
      Parameters:
      routeName - The resource name of the route.
      Returns:
      this
    • build

      @Stability(Experimental) public RouteProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<RouteProps>
      Returns:
      a new instance of RouteProps
      Throws:
      NullPointerException - if any required attribute was not provided