public static final class GatewayRouteSpecConfig.Builder
extends java.lang.Object
GatewayRouteSpecConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GatewayRouteSpecConfig |
build()
Builds the configured instance.
|
GatewayRouteSpecConfig.Builder |
grpcSpecConfig(CfnGatewayRoute.GrpcGatewayRouteProperty grpcSpecConfig)
Sets the value of
GatewayRouteSpecConfig.getGrpcSpecConfig() |
GatewayRouteSpecConfig.Builder |
http2SpecConfig(CfnGatewayRoute.HttpGatewayRouteProperty http2SpecConfig)
Sets the value of
GatewayRouteSpecConfig.getHttp2SpecConfig() |
GatewayRouteSpecConfig.Builder |
httpSpecConfig(CfnGatewayRoute.HttpGatewayRouteProperty httpSpecConfig)
Sets the value of
GatewayRouteSpecConfig.getHttpSpecConfig() |
GatewayRouteSpecConfig.Builder |
priority(java.lang.Number priority)
Sets the value of
GatewayRouteSpecConfig.getPriority() |
public GatewayRouteSpecConfig.Builder grpcSpecConfig(CfnGatewayRoute.GrpcGatewayRouteProperty grpcSpecConfig)
GatewayRouteSpecConfig.getGrpcSpecConfig()
grpcSpecConfig
- The spec for a grpc gateway route.this
public GatewayRouteSpecConfig.Builder http2SpecConfig(CfnGatewayRoute.HttpGatewayRouteProperty http2SpecConfig)
GatewayRouteSpecConfig.getHttp2SpecConfig()
http2SpecConfig
- The spec for an http2 gateway route.this
public GatewayRouteSpecConfig.Builder httpSpecConfig(CfnGatewayRoute.HttpGatewayRouteProperty httpSpecConfig)
GatewayRouteSpecConfig.getHttpSpecConfig()
httpSpecConfig
- The spec for an http gateway route.this
public GatewayRouteSpecConfig.Builder priority(java.lang.Number priority)
GatewayRouteSpecConfig.getPriority()
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.this
public GatewayRouteSpecConfig build()
GatewayRouteSpecConfig
java.lang.NullPointerException
- if any required attribute was not provided