Class RouteReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ec2.RouteReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RouteReference>
- Enclosing interface:
RouteReference
@Stability(Stable)
public static final class RouteReference.Builder
extends Object
implements software.amazon.jsii.Builder<RouteReference>
A builder for
RouteReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofRouteReference.getCidrBlock()routeTableId(String routeTableId) Sets the value ofRouteReference.getRouteTableId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidrBlock
Sets the value ofRouteReference.getCidrBlock()- Parameters:
cidrBlock- The CidrBlock of the Route resource. This parameter is required.- Returns:
this
-
routeTableId
Sets the value ofRouteReference.getRouteTableId()- Parameters:
routeTableId- The RouteTableId of the Route resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RouteReference>- Returns:
- a new instance of
RouteReference - Throws:
NullPointerException- if any required attribute was not provided
-