Class RouteServerAssociationReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.RouteServerAssociationReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RouteServerAssociationReference>
- Enclosing interface:
RouteServerAssociationReference
@Stability(Stable)
public static final class RouteServerAssociationReference.Builder
extends Object
implements software.amazon.jsii.Builder<RouteServerAssociationReference>
A builder for
RouteServerAssociationReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.routeServerId
(String routeServerId) Sets the value ofRouteServerAssociationReference.getRouteServerId()
Sets the value ofRouteServerAssociationReference.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
routeServerId
@Stability(Stable) public RouteServerAssociationReference.Builder routeServerId(String routeServerId) Sets the value ofRouteServerAssociationReference.getRouteServerId()
- Parameters:
routeServerId
- The RouteServerId of the RouteServerAssociation resource. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofRouteServerAssociationReference.getVpcId()
- Parameters:
vpcId
- The VpcId of the RouteServerAssociation resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RouteServerAssociationReference>
- Returns:
- a new instance of
RouteServerAssociationReference
- Throws:
NullPointerException
- if any required attribute was not provided
-