Package com.oracle.bmc.servicemesh.model
Class HttpIngressGatewayTrafficRouteRule.Builder
- java.lang.Object
-
- com.oracle.bmc.servicemesh.model.HttpIngressGatewayTrafficRouteRule.Builder
-
- Enclosing class:
- HttpIngressGatewayTrafficRouteRule
public static class HttpIngressGatewayTrafficRouteRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
ingressGatewayHost
public HttpIngressGatewayTrafficRouteRule.Builder ingressGatewayHost(IngressGatewayHostRef ingressGatewayHost)
-
destinations
public HttpIngressGatewayTrafficRouteRule.Builder destinations(List<VirtualServiceTrafficRuleTarget> destinations)
-
path
public HttpIngressGatewayTrafficRouteRule.Builder path(String path)
Route to match- Parameters:
path
- the value to set- Returns:
- this builder
-
pathType
public HttpIngressGatewayTrafficRouteRule.Builder pathType(HttpIngressGatewayTrafficRouteRule.PathType pathType)
Match type for the route- Parameters:
pathType
- the value to set- Returns:
- this builder
-
isGrpc
public HttpIngressGatewayTrafficRouteRule.Builder isGrpc(Boolean isGrpc)
If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.- Parameters:
isGrpc
- the value to set- Returns:
- this builder
-
isHostRewriteEnabled
public HttpIngressGatewayTrafficRouteRule.Builder isHostRewriteEnabled(Boolean isHostRewriteEnabled)
If true, the hostname will be rewritten to the target virtual deployment’s DNS hostname.- Parameters:
isHostRewriteEnabled
- the value to set- Returns:
- this builder
-
isPathRewriteEnabled
public HttpIngressGatewayTrafficRouteRule.Builder isPathRewriteEnabled(Boolean isPathRewriteEnabled)
If true, the matched path prefix will be rewritten to ‘/’ before being directed to the target virtual deployment.- Parameters:
isPathRewriteEnabled
- the value to set- Returns:
- this builder
-
requestTimeoutInMs
public HttpIngressGatewayTrafficRouteRule.Builder requestTimeoutInMs(Long requestTimeoutInMs)
The maximum duration in milliseconds for the upstream service to respond to a request.If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when ‘isGrpc’ is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the upstream service, consider either keeping the timeout disabled or set a sufficiently high value.
- Parameters:
requestTimeoutInMs
- the value to set- Returns:
- this builder
-
build
public HttpIngressGatewayTrafficRouteRule build()
-
copy
public HttpIngressGatewayTrafficRouteRule.Builder copy(HttpIngressGatewayTrafficRouteRule model)
-
-