public final class HttpRouteRule
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
HttpRouteRule() |
| Modifier and Type | Method and Description |
|---|---|
HttpRouteRule |
clone() |
String |
getDescription()
The short description conveying the intent of this routeRule.
|
HttpHeaderAction |
getHeaderAction()
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
List<HttpRouteRuleMatch> |
getMatchRules()
The list of criteria for matching attributes of a request to this routeRule.
|
Integer |
getPriority()
For routeRules within a given pathMatcher, priority determines the order in which a load
balancer interprets routeRules.
|
HttpRouteAction |
getRouteAction()
In response to a matching matchRule, the load balancer performs advanced routing actions, such
as URL rewrites and header transformations, before forwarding the request to the selected
backend.
|
String |
getService()
The full or partial URL of the backend service resource to which traffic is directed if this
rule is matched.
|
HttpRedirectAction |
getUrlRedirect()
When this rule is matched, the request is redirected to a URL specified by urlRedirect.
|
HttpRouteRule |
set(String fieldName,
Object value) |
HttpRouteRule |
setDescription(String description)
The short description conveying the intent of this routeRule.
|
HttpRouteRule |
setHeaderAction(HttpHeaderAction headerAction)
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
HttpRouteRule |
setMatchRules(List<HttpRouteRuleMatch> matchRules)
The list of criteria for matching attributes of a request to this routeRule.
|
HttpRouteRule |
setPriority(Integer priority)
For routeRules within a given pathMatcher, priority determines the order in which a load
balancer interprets routeRules.
|
HttpRouteRule |
setRouteAction(HttpRouteAction routeAction)
In response to a matching matchRule, the load balancer performs advanced routing actions, such
as URL rewrites and header transformations, before forwarding the request to the selected
backend.
|
HttpRouteRule |
setService(String service)
The full or partial URL of the backend service resource to which traffic is directed if this
rule is matched.
|
HttpRouteRule |
setUrlRedirect(HttpRedirectAction urlRedirect)
When this rule is matched, the request is redirected to a URL specified by urlRedirect.
|
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 String getDescription()
null for nonepublic HttpRouteRule setDescription(String description)
description - description or null for nonepublic HttpHeaderAction getHeaderAction()
null for nonepublic HttpRouteRule setHeaderAction(HttpHeaderAction headerAction)
headerAction - headerAction or null for nonepublic List<HttpRouteRuleMatch> getMatchRules()
null for nonepublic HttpRouteRule setMatchRules(List<HttpRouteRuleMatch> matchRules)
matchRules - matchRules or null for nonepublic Integer getPriority()
null for nonepublic HttpRouteRule setPriority(Integer priority)
priority - priority or null for nonepublic HttpRouteAction getRouteAction()
null for nonepublic HttpRouteRule setRouteAction(HttpRouteAction routeAction)
routeAction - routeAction or null for nonepublic String getService()
null for nonepublic HttpRouteRule setService(String service)
service - service or null for nonepublic HttpRedirectAction getUrlRedirect()
null for nonepublic HttpRouteRule setUrlRedirect(HttpRedirectAction urlRedirect)
urlRedirect - urlRedirect or null for nonepublic HttpRouteRule set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic HttpRouteRule clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.