public final class WeightedBackendService 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 | 
|---|
| WeightedBackendService() | 
| Modifier and Type | Method and Description | 
|---|---|
| WeightedBackendService | clone() | 
| 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. | 
| Long | getWeight()Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all
 weightedBackendService weights in routeAction) . | 
| WeightedBackendService | set(String fieldName,
   Object value) | 
| WeightedBackendService | setBackendService(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(Long weight)Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all
 weightedBackendService weights in routeAction) . | 
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 getBackendService()
null for nonepublic WeightedBackendService setBackendService(String backendService)
backendService - backendService or null for nonepublic HttpHeaderAction getHeaderAction()
null for nonepublic WeightedBackendService setHeaderAction(HttpHeaderAction headerAction)
headerAction - headerAction or null for nonepublic Long getWeight()
null for nonepublic WeightedBackendService setWeight(Long weight)
weight - weight or null for nonepublic WeightedBackendService set(String fieldName, Object value)
set in class GenericJsonpublic WeightedBackendService clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.