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