Package com.oracle.bmc.servicemesh.model
Class HttpIngressGatewayTrafficRouteRuleDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.servicemesh.model.HttpIngressGatewayTrafficRouteRuleDetails.Builder
-
- Enclosing class:
- HttpIngressGatewayTrafficRouteRuleDetails
public static class HttpIngressGatewayTrafficRouteRuleDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
ingressGatewayHost
public HttpIngressGatewayTrafficRouteRuleDetails.Builder ingressGatewayHost(IngressGatewayHostRef ingressGatewayHost)
-
destinations
public HttpIngressGatewayTrafficRouteRuleDetails.Builder destinations(List<VirtualServiceTrafficRuleTargetDetails> destinations)
-
path
public HttpIngressGatewayTrafficRouteRuleDetails.Builder path(String path)
Route to match- Parameters:
path
- the value to set- Returns:
- this builder
-
pathType
public HttpIngressGatewayTrafficRouteRuleDetails.Builder pathType(HttpIngressGatewayTrafficRouteRuleDetails.PathType pathType)
Match type for the route- Parameters:
pathType
- the value to set- Returns:
- this builder
-
isGrpc
public 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.- Parameters:
isGrpc
- the value to set- Returns:
- this builder
-
isHostRewriteEnabled
public HttpIngressGatewayTrafficRouteRuleDetails.Builder isHostRewriteEnabled(Boolean isHostRewriteEnabled)
If true, the hostname will be rewritten to the target virtual deployment’s DNS hostname.- Parameters:
isHostRewriteEnabled
- the value to set- Returns:
- this builder
-
isPathRewriteEnabled
public HttpIngressGatewayTrafficRouteRuleDetails.Builder isPathRewriteEnabled(Boolean isPathRewriteEnabled)
If true, the matched path prefix will be rewritten to ‘/’ before being directed to the target virtual deployment.- Parameters:
isPathRewriteEnabled
- the value to set- Returns:
- this builder
-
requestTimeoutInMs
public 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.
- Parameters:
requestTimeoutInMs
- the value to set- Returns:
- this builder
-
build
public HttpIngressGatewayTrafficRouteRuleDetails build()
-
copy
public HttpIngressGatewayTrafficRouteRuleDetails.Builder copy(HttpIngressGatewayTrafficRouteRuleDetails model)
-
-