public final class WeightedBackendService
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 |
|---|
WeightedBackendService() |
| Modifier and Type | Method and Description |
|---|---|
WeightedBackendService |
clone() |
java.lang.String |
getBackendService()
The full or partial URL to the default BackendService resource.
|
HttpHeaderAction |
getHeaderAction()
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
java.lang.Long |
getWeight()
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all
weightedBackendService weights in routeAction) .
|
WeightedBackendService |
set(java.lang.String fieldName,
java.lang.Object value) |
WeightedBackendService |
setBackendService(java.lang.String backendService)
The full or partial URL to the default BackendService resource.
|
WeightedBackendService |
setHeaderAction(HttpHeaderAction headerAction)
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
WeightedBackendService |
setWeight(java.lang.Long weight)
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all
weightedBackendService weights in routeAction) .
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getBackendService()
null for nonepublic WeightedBackendService setBackendService(java.lang.String backendService)
backendService - backendService or null for nonepublic HttpHeaderAction getHeaderAction()
null for nonepublic WeightedBackendService setHeaderAction(HttpHeaderAction headerAction)
headerAction - headerAction or null for nonepublic java.lang.Long getWeight()
null for nonepublic WeightedBackendService setWeight(java.lang.Long weight)
weight - weight or null for nonepublic WeightedBackendService set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic WeightedBackendService clone()
clone in class com.google.api.client.json.GenericJson