public static final class HttpGatewayRouteSpecOptions.Builder
extends java.lang.Object
HttpGatewayRouteSpecOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpGatewayRouteSpecOptions |
build()
Builds the configured instance.
|
HttpGatewayRouteSpecOptions.Builder |
match(HttpGatewayRouteMatch match)
Sets the value of
HttpGatewayRouteSpecOptions.getMatch() |
HttpGatewayRouteSpecOptions.Builder |
priority(java.lang.Number priority)
Sets the value of
CommonGatewayRouteSpecOptions.getPriority() |
HttpGatewayRouteSpecOptions.Builder |
routeTarget(IVirtualService routeTarget)
Sets the value of
HttpGatewayRouteSpecOptions.getRouteTarget() |
public HttpGatewayRouteSpecOptions.Builder routeTarget(IVirtualService routeTarget)
HttpGatewayRouteSpecOptions.getRouteTarget()
routeTarget
- The VirtualService this GatewayRoute directs traffic to. This parameter is required.this
public HttpGatewayRouteSpecOptions.Builder match(HttpGatewayRouteMatch match)
HttpGatewayRouteSpecOptions.getMatch()
match
- The criterion for determining a request match for this GatewayRoute.
When path match is defined, this may optionally determine the path rewrite configuration.this
public HttpGatewayRouteSpecOptions.Builder priority(java.lang.Number priority)
CommonGatewayRouteSpecOptions.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 HttpGatewayRouteSpecOptions build()
HttpGatewayRouteSpecOptions
java.lang.NullPointerException
- if any required attribute was not provided