Class GrpcGatewayRouteSpecOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.GrpcGatewayRouteSpecOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GrpcGatewayRouteSpecOptions>
- Enclosing interface:
GrpcGatewayRouteSpecOptions
@Stability(Stable)
public static final class GrpcGatewayRouteSpecOptions.Builder
extends Object
implements software.amazon.jsii.Builder<GrpcGatewayRouteSpecOptions>
A builder for
GrpcGatewayRouteSpecOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.match
(GrpcGatewayRouteMatch match) Sets the value ofGrpcGatewayRouteSpecOptions.getMatch()
Sets the value ofCommonGatewayRouteSpecOptions.getPriority()
routeTarget
(IVirtualService routeTarget) Sets the value ofGrpcGatewayRouteSpecOptions.getRouteTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
match
Sets the value ofGrpcGatewayRouteSpecOptions.getMatch()
- Parameters:
match
- The criterion for determining a request match for this GatewayRoute. This parameter is required.- Returns:
this
-
routeTarget
@Stability(Stable) public GrpcGatewayRouteSpecOptions.Builder routeTarget(IVirtualService routeTarget) Sets the value ofGrpcGatewayRouteSpecOptions.getRouteTarget()
- Parameters:
routeTarget
- The VirtualService this GatewayRoute directs traffic to. This parameter is required.- Returns:
this
-
priority
Sets the value ofCommonGatewayRouteSpecOptions.getPriority()
- Parameters:
priority
- The priority for the gateway route. When a Virtual Gateway has multiple gateway routes, gateway route match is performed in the order of specified value, where 0 is the highest priority, and first matched gateway route is selected.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GrpcGatewayRouteSpecOptions>
- Returns:
- a new instance of
GrpcGatewayRouteSpecOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-