public final class HttpRouteAction
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
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.
|
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.
|
java.util.List<WeightedBackendService> |
getWeightedBackendServices()
A list of weighted backend services to send traffic to when a route match occurs.
|
HttpRouteAction |
set(java.lang.String fieldName,
java.lang.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 |
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(java.util.List<WeightedBackendService> weightedBackendServices)
A list of weighted backend services to send traffic to when a route match occurs.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 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 java.util.List<WeightedBackendService> getWeightedBackendServices()
null
for nonepublic HttpRouteAction setWeightedBackendServices(java.util.List<WeightedBackendService> weightedBackendServices)
weightedBackendServices
- weightedBackendServices or null
for nonepublic HttpRouteAction set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public HttpRouteAction clone()
clone
in class com.google.api.client.json.GenericJson