public static class HttpIngressGatewayTrafficRouteRule.Builder extends Object
Constructor and Description |
---|
Builder() |
public HttpIngressGatewayTrafficRouteRule.Builder ingressGatewayHost(IngressGatewayHostRef ingressGatewayHost)
public HttpIngressGatewayTrafficRouteRule.Builder destinations(List<VirtualServiceTrafficRuleTarget> destinations)
public HttpIngressGatewayTrafficRouteRule.Builder path(String path)
Route to match
path
- the value to setpublic HttpIngressGatewayTrafficRouteRule.Builder pathType(HttpIngressGatewayTrafficRouteRule.PathType pathType)
Match type for the route
pathType
- the value to setpublic 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.
isGrpc
- the value to setpublic HttpIngressGatewayTrafficRouteRule.Builder isHostRewriteEnabled(Boolean isHostRewriteEnabled)
If true, the hostname will be rewritten to the target virtual deployment’s DNS hostname.
isHostRewriteEnabled
- the value to setpublic HttpIngressGatewayTrafficRouteRule.Builder isPathRewriteEnabled(Boolean isPathRewriteEnabled)
If true, the matched path prefix will be rewritten to ‘/’ before being directed to the target virtual deployment.
isPathRewriteEnabled
- the value to setpublic 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.
requestTimeoutInMs
- the value to setpublic HttpIngressGatewayTrafficRouteRule build()
public HttpIngressGatewayTrafficRouteRule.Builder copy(HttpIngressGatewayTrafficRouteRule model)
Copyright © 2016–2024. All rights reserved.