public static class HttpVirtualServiceTrafficRouteRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpVirtualServiceTrafficRouteRule |
build() |
HttpVirtualServiceTrafficRouteRule.Builder |
copy(HttpVirtualServiceTrafficRouteRule model) |
HttpVirtualServiceTrafficRouteRule.Builder |
destinations(List<VirtualDeploymentTrafficRuleTarget> destinations) |
HttpVirtualServiceTrafficRouteRule.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.
|
HttpVirtualServiceTrafficRouteRule.Builder |
path(String path)
Route to match
|
HttpVirtualServiceTrafficRouteRule.Builder |
pathType(HttpVirtualServiceTrafficRouteRule.PathType pathType)
Match type for the route
|
HttpVirtualServiceTrafficRouteRule.Builder |
requestTimeoutInMs(Long requestTimeoutInMs)
The maximum duration in milliseconds for the target service to respond to a request.
|
public HttpVirtualServiceTrafficRouteRule.Builder destinations(List<VirtualDeploymentTrafficRuleTarget> destinations)
public HttpVirtualServiceTrafficRouteRule.Builder path(String path)
Route to match
path
- the value to setpublic HttpVirtualServiceTrafficRouteRule.Builder pathType(HttpVirtualServiceTrafficRouteRule.PathType pathType)
Match type for the route
pathType
- the value to setpublic HttpVirtualServiceTrafficRouteRule.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 HttpVirtualServiceTrafficRouteRule.Builder requestTimeoutInMs(Long requestTimeoutInMs)
The maximum duration in milliseconds for the target 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 target service, consider either keeping the timeout disabled or set a sufficiently high value.
requestTimeoutInMs
- the value to setpublic HttpVirtualServiceTrafficRouteRule build()
public HttpVirtualServiceTrafficRouteRule.Builder copy(HttpVirtualServiceTrafficRouteRule model)
Copyright © 2016–2024. All rights reserved.