public static class HttpRouteAction.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HttpRouteAction.Builder |
addAllWeightedBackendServices(List<WeightedBackendService> weightedBackendServices)
A list of weighted backend services to send traffic to when a route match occurs.
|
HttpRouteAction.Builder |
addWeightedBackendServices(WeightedBackendService weightedBackendServices)
A list of weighted backend services to send traffic to when a route match occurs.
|
HttpRouteAction |
build() |
HttpRouteAction.Builder |
clone() |
CorsPolicy |
getCorsPolicy()
The specification for allowing client side cross-origin requests.
|
HttpFaultInjection |
getFaultInjectionPolicy()
The specification for fault injection introduced into traffic to test the resiliency of
clients to backend service failure.
|
RequestMirrorPolicy |
getRequestMirrorPolicy()
Specifies the policy on how requests intended for the route's backends are shadowed to a
separate mirrored backend service.
|
HttpRetryPolicy |
getRetryPolicy()
Specifies the retry policy associated with this route.
|
Duration |
getTimeout()
Specifies the timeout for the selected route.
|
UrlRewrite |
getUrlRewrite()
The spec to modify the URL of the request, prior to forwarding the request to the matched
service
|
List<WeightedBackendService> |
getWeightedBackendServicesList()
A list of weighted backend services to send traffic to when a route match occurs.
|
HttpRouteAction.Builder |
mergeFrom(HttpRouteAction other) |
HttpRouteAction.Builder |
setCorsPolicy(CorsPolicy corsPolicy)
The specification for allowing client side cross-origin requests.
|
HttpRouteAction.Builder |
setFaultInjectionPolicy(HttpFaultInjection faultInjectionPolicy)
The specification for fault injection introduced into traffic to test the resiliency of
clients to backend service failure.
|
HttpRouteAction.Builder |
setRequestMirrorPolicy(RequestMirrorPolicy requestMirrorPolicy)
Specifies the policy on how requests intended for the route's backends are shadowed to a
separate mirrored backend service.
|
HttpRouteAction.Builder |
setRetryPolicy(HttpRetryPolicy retryPolicy)
Specifies the retry policy associated with this route.
|
HttpRouteAction.Builder |
setTimeout(Duration timeout)
Specifies the timeout for the selected route.
|
HttpRouteAction.Builder |
setUrlRewrite(UrlRewrite urlRewrite)
The spec to modify the URL of the request, prior to forwarding the request to the matched
service
|
public HttpRouteAction.Builder mergeFrom(HttpRouteAction other)
public CorsPolicy getCorsPolicy()
public HttpRouteAction.Builder setCorsPolicy(CorsPolicy corsPolicy)
public HttpFaultInjection getFaultInjectionPolicy()
public HttpRouteAction.Builder setFaultInjectionPolicy(HttpFaultInjection faultInjectionPolicy)
public RequestMirrorPolicy getRequestMirrorPolicy()
public HttpRouteAction.Builder setRequestMirrorPolicy(RequestMirrorPolicy requestMirrorPolicy)
public HttpRetryPolicy getRetryPolicy()
public HttpRouteAction.Builder setRetryPolicy(HttpRetryPolicy retryPolicy)
public Duration getTimeout()
public HttpRouteAction.Builder setTimeout(Duration timeout)
public UrlRewrite getUrlRewrite()
public HttpRouteAction.Builder setUrlRewrite(UrlRewrite urlRewrite)
public List<WeightedBackendService> getWeightedBackendServicesList()
public HttpRouteAction.Builder addAllWeightedBackendServices(List<WeightedBackendService> weightedBackendServices)
public HttpRouteAction.Builder addWeightedBackendServices(WeightedBackendService weightedBackendServices)
public HttpRouteAction build()
public HttpRouteAction.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.