Package com.oracle.bmc.servicemesh.model
Class HttpVirtualServiceTrafficRouteRule.Builder
- java.lang.Object
-
- com.oracle.bmc.servicemesh.model.HttpVirtualServiceTrafficRouteRule.Builder
-
- Enclosing class:
- HttpVirtualServiceTrafficRouteRule
public static class HttpVirtualServiceTrafficRouteRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 matchHttpVirtualServiceTrafficRouteRule.Builder
pathType(HttpVirtualServiceTrafficRouteRule.PathType pathType)
Match type for the routeHttpVirtualServiceTrafficRouteRule.Builder
requestTimeoutInMs(Long requestTimeoutInMs)
The maximum duration in milliseconds for the target service to respond to a request.
-
-
-
Method Detail
-
destinations
public HttpVirtualServiceTrafficRouteRule.Builder destinations(List<VirtualDeploymentTrafficRuleTarget> destinations)
-
path
public HttpVirtualServiceTrafficRouteRule.Builder path(String path)
Route to match- Parameters:
path
- the value to set- Returns:
- this builder
-
pathType
public HttpVirtualServiceTrafficRouteRule.Builder pathType(HttpVirtualServiceTrafficRouteRule.PathType pathType)
Match type for the route- Parameters:
pathType
- the value to set- Returns:
- this builder
-
isGrpc
public 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.- Parameters:
isGrpc
- the value to set- Returns:
- this builder
-
requestTimeoutInMs
public 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.
- Parameters:
requestTimeoutInMs
- the value to set- Returns:
- this builder
-
build
public HttpVirtualServiceTrafficRouteRule build()
-
copy
public HttpVirtualServiceTrafficRouteRule.Builder copy(HttpVirtualServiceTrafficRouteRule model)
-
-