public final class HttpRouteAction extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
HttpRouteAction() |
| Modifier and Type | Method and Description |
|---|---|
HttpRouteAction |
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.
|
Duration |
getMaxStreamDuration()
Specifies the maximum duration (timeout) for streams on the selected route.
|
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> |
getWeightedBackendServices()
A list of weighted backend services to send traffic to when a route match occurs.
|
HttpRouteAction |
set(String fieldName,
Object value) |
HttpRouteAction |
setCorsPolicy(CorsPolicy corsPolicy)
The specification for allowing client side cross-origin requests.
|
HttpRouteAction |
setFaultInjectionPolicy(HttpFaultInjection faultInjectionPolicy)
The specification for fault injection introduced into traffic to test the resiliency of clients
to backend service failure.
|
HttpRouteAction |
setMaxStreamDuration(Duration maxStreamDuration)
Specifies the maximum duration (timeout) for streams on the selected route.
|
HttpRouteAction |
setRequestMirrorPolicy(RequestMirrorPolicy requestMirrorPolicy)
Specifies the policy on how requests intended for the route's backends are shadowed to a
separate mirrored backend service.
|
HttpRouteAction |
setRetryPolicy(HttpRetryPolicy retryPolicy)
Specifies the retry policy associated with this route.
|
HttpRouteAction |
setTimeout(Duration timeout)
Specifies the timeout for the selected route.
|
HttpRouteAction |
setUrlRewrite(UrlRewrite urlRewrite)
The spec to modify the URL of the request, prior to forwarding the request to the matched
service.
|
HttpRouteAction |
setWeightedBackendServices(List<WeightedBackendService> weightedBackendServices)
A list of weighted backend services to send traffic to when a route match occurs.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic CorsPolicy getCorsPolicy()
null for nonepublic HttpRouteAction setCorsPolicy(CorsPolicy corsPolicy)
corsPolicy - corsPolicy or null for nonepublic HttpFaultInjection getFaultInjectionPolicy()
null for nonepublic HttpRouteAction setFaultInjectionPolicy(HttpFaultInjection faultInjectionPolicy)
faultInjectionPolicy - faultInjectionPolicy or null for nonepublic Duration getMaxStreamDuration()
null for nonepublic HttpRouteAction setMaxStreamDuration(Duration maxStreamDuration)
maxStreamDuration - maxStreamDuration or null for nonepublic RequestMirrorPolicy getRequestMirrorPolicy()
null for nonepublic HttpRouteAction setRequestMirrorPolicy(RequestMirrorPolicy requestMirrorPolicy)
requestMirrorPolicy - requestMirrorPolicy or null for nonepublic HttpRetryPolicy getRetryPolicy()
null for nonepublic HttpRouteAction setRetryPolicy(HttpRetryPolicy retryPolicy)
retryPolicy - retryPolicy or null for nonepublic Duration getTimeout()
null for nonepublic HttpRouteAction setTimeout(Duration timeout)
timeout - timeout or null for nonepublic UrlRewrite getUrlRewrite()
null for nonepublic HttpRouteAction setUrlRewrite(UrlRewrite urlRewrite)
urlRewrite - urlRewrite or null for nonepublic List<WeightedBackendService> getWeightedBackendServices()
null for nonepublic HttpRouteAction setWeightedBackendServices(List<WeightedBackendService> weightedBackendServices)
weightedBackendServices - weightedBackendServices or null for nonepublic HttpRouteAction set(String fieldName, Object value)
set in class GenericJsonpublic HttpRouteAction clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.