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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destination(String destination) Sets the value ofRouteProps.getDestination()Sets the value ofRouteProps.getRouteName()routeTable(IRouteTable routeTable) Sets the value ofRouteProps.getRouteTable()target(RouteTargetType target) Sets the value ofRouteProps.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
Sets the value ofRouteProps.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
Sets the value ofRouteProps.getRouteTable()- Parameters:
routeTable- The ID of the route table for the route. This parameter is required.- Returns:
this
-
target
Sets the value ofRouteProps.getTarget()- Parameters:
target- The gateway or endpoint targeted by the route. This parameter is required.- Returns:
this
-
routeName
Sets the value ofRouteProps.getRouteName()- Parameters:
routeName- The resource name of the route.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RouteProps>- Returns:
- a new instance of
RouteProps - Throws:
NullPointerException- if any required attribute was not provided
-