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