Class GatewayRouteSpecConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.GatewayRouteSpecConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayRouteSpecConfig>
- Enclosing interface:
GatewayRouteSpecConfig
@Stability(Stable)
public static final class GatewayRouteSpecConfig.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayRouteSpecConfig>
A builder for
GatewayRouteSpecConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.grpcSpecConfig(CfnGatewayRoute.GrpcGatewayRouteProperty grpcSpecConfig) Sets the value ofGatewayRouteSpecConfig.getGrpcSpecConfig()http2SpecConfig(CfnGatewayRoute.HttpGatewayRouteProperty http2SpecConfig) Sets the value ofGatewayRouteSpecConfig.getHttp2SpecConfig()httpSpecConfig(CfnGatewayRoute.HttpGatewayRouteProperty httpSpecConfig) Sets the value ofGatewayRouteSpecConfig.getHttpSpecConfig()Sets the value ofGatewayRouteSpecConfig.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
grpcSpecConfig
@Stability(Stable) public GatewayRouteSpecConfig.Builder grpcSpecConfig(CfnGatewayRoute.GrpcGatewayRouteProperty grpcSpecConfig) Sets the value ofGatewayRouteSpecConfig.getGrpcSpecConfig()- Parameters:
grpcSpecConfig- The spec for a grpc gateway route.- Returns:
this
-
http2SpecConfig
@Stability(Stable) public GatewayRouteSpecConfig.Builder http2SpecConfig(CfnGatewayRoute.HttpGatewayRouteProperty http2SpecConfig) Sets the value ofGatewayRouteSpecConfig.getHttp2SpecConfig()- Parameters:
http2SpecConfig- The spec for an http2 gateway route.- Returns:
this
-
httpSpecConfig
@Stability(Stable) public GatewayRouteSpecConfig.Builder httpSpecConfig(CfnGatewayRoute.HttpGatewayRouteProperty httpSpecConfig) Sets the value ofGatewayRouteSpecConfig.getHttpSpecConfig()- Parameters:
httpSpecConfig- The spec for an http gateway route.- Returns:
this
-
priority
Sets the value ofGatewayRouteSpecConfig.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:
buildin interfacesoftware.amazon.jsii.Builder<GatewayRouteSpecConfig>- Returns:
- a new instance of
GatewayRouteSpecConfig - Throws:
NullPointerException- if any required attribute was not provided
-