Class GatewayRoute.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.GatewayRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayRoute>
- Enclosing class:
GatewayRoute
@Stability(Stable)
public static final class GatewayRoute.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayRoute>
A fluent builder for
GatewayRoute
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static GatewayRoute.Builder
gatewayRouteName
(String gatewayRouteName) The name of the GatewayRoute.routeSpec
(GatewayRouteSpec routeSpec) What protocol the route uses.virtualGateway
(IVirtualGateway virtualGateway) The VirtualGateway this GatewayRoute is associated with.
-
Method Details
-
create
@Stability(Stable) public static GatewayRoute.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
GatewayRoute.Builder
.
-
routeSpec
What protocol the route uses.- Parameters:
routeSpec
- What protocol the route uses. This parameter is required.- Returns:
this
-
gatewayRouteName
The name of the GatewayRoute.Default: - an automatically generated name
- Parameters:
gatewayRouteName
- The name of the GatewayRoute. This parameter is required.- Returns:
this
-
virtualGateway
The VirtualGateway this GatewayRoute is associated with.- Parameters:
virtualGateway
- The VirtualGateway this GatewayRoute is associated with. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GatewayRoute>
- Returns:
- a newly built instance of
GatewayRoute
.
-