Class RouteProps.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.RouteProps.Builder
- All Implemented Interfaces:
 software.amazon.jsii.Builder<RouteProps>
- Enclosing interface:
 RouteProps
@Stability(Stable)
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.Sets the value ofRouteProps.getMesh()Sets the value ofRouteBaseProps.getRouteName()Sets the value ofRouteBaseProps.getRouteSpec()virtualRouter(IVirtualRouter virtualRouter) Sets the value ofRouteProps.getVirtualRouter() 
- 
Constructor Details
- 
Builder
public Builder() 
 - 
 - 
Method Details
- 
mesh
Sets the value ofRouteProps.getMesh()- Parameters:
 mesh- The service mesh to define the route in. This parameter is required.- Returns:
 this
 - 
virtualRouter
Sets the value ofRouteProps.getVirtualRouter()- Parameters:
 virtualRouter- The VirtualRouter the Route belongs to. This parameter is required.- Returns:
 this
 - 
routeSpec
Sets the value ofRouteBaseProps.getRouteSpec()- Parameters:
 routeSpec- Protocol specific spec. This parameter is required.- Returns:
 this
 - 
routeName
Sets the value ofRouteBaseProps.getRouteName()- Parameters:
 routeName- The 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
 
 -