Class RouteReference.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.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.getRouteArn()
Sets the value ofRouteReference.getRouteId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
routeArn
Sets the value ofRouteReference.getRouteArn()
- Parameters:
routeArn
- The ARN of the Route resource. This parameter is required.- Returns:
this
-
routeId
Sets the value ofRouteReference.getRouteId()
- Parameters:
routeId
- The Id of the Route resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RouteReference>
- Returns:
- a new instance of
RouteReference
- Throws:
NullPointerException
- if any required attribute was not provided
-