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