public final class Backend
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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Backend() |
Modifier and Type | Method and Description |
---|---|
Backend |
clone() |
String |
getBalancingMode()
Specifies how to determine whether the backend of a load balancer can handle additional traffic
or is fully loaded.
|
Float |
getCapacityScaler()
A multiplier applied to the backend's target capacity of its balancing mode.
|
List<BackendCustomMetric> |
getCustomMetrics()
List of custom metrics that are used for CUSTOM_METRICS BalancingMode.
|
String |
getDescription()
An optional description of this resource.
|
Boolean |
getFailover()
This field designates whether this is a failover backend.
|
String |
getGroup()
The fully-qualified URL of an instance group or network endpoint group (NEG) resource.
|
Integer |
getMaxConnections()
Defines a target maximum number of simultaneous connections.
|
Integer |
getMaxConnectionsPerEndpoint()
Defines a target maximum number of simultaneous connections.
|
Integer |
getMaxConnectionsPerInstance()
Defines a target maximum number of simultaneous connections.
|
Integer |
getMaxRate()
Defines a maximum number of HTTP requests per second (RPS).
|
Float |
getMaxRatePerEndpoint()
Defines a maximum target for requests per second (RPS).
|
Float |
getMaxRatePerInstance()
Defines a maximum target for requests per second (RPS).
|
Float |
getMaxUtilization()
Optional parameter to define a target capacity for the UTILIZATION balancing mode.
|
String |
getPreference()
This field indicates whether this backend should be fully utilized before sending traffic to
backends with default preference.
|
Backend |
set(String fieldName,
Object value) |
Backend |
setBalancingMode(String balancingMode)
Specifies how to determine whether the backend of a load balancer can handle additional traffic
or is fully loaded.
|
Backend |
setCapacityScaler(Float capacityScaler)
A multiplier applied to the backend's target capacity of its balancing mode.
|
Backend |
setCustomMetrics(List<BackendCustomMetric> customMetrics)
List of custom metrics that are used for CUSTOM_METRICS BalancingMode.
|
Backend |
setDescription(String description)
An optional description of this resource.
|
Backend |
setFailover(Boolean failover)
This field designates whether this is a failover backend.
|
Backend |
setGroup(String group)
The fully-qualified URL of an instance group or network endpoint group (NEG) resource.
|
Backend |
setMaxConnections(Integer maxConnections)
Defines a target maximum number of simultaneous connections.
|
Backend |
setMaxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint)
Defines a target maximum number of simultaneous connections.
|
Backend |
setMaxConnectionsPerInstance(Integer maxConnectionsPerInstance)
Defines a target maximum number of simultaneous connections.
|
Backend |
setMaxRate(Integer maxRate)
Defines a maximum number of HTTP requests per second (RPS).
|
Backend |
setMaxRatePerEndpoint(Float maxRatePerEndpoint)
Defines a maximum target for requests per second (RPS).
|
Backend |
setMaxRatePerInstance(Float maxRatePerInstance)
Defines a maximum target for requests per second (RPS).
|
Backend |
setMaxUtilization(Float maxUtilization)
Optional parameter to define a target capacity for the UTILIZATION balancing mode.
|
Backend |
setPreference(String preference)
This field indicates whether this backend should be fully utilized before sending traffic to
backends with default preference.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getBalancingMode()
null
for nonepublic Backend setBalancingMode(String balancingMode)
balancingMode
- balancingMode or null
for nonepublic Float getCapacityScaler()
null
for nonepublic Backend setCapacityScaler(Float capacityScaler)
capacityScaler
- capacityScaler or null
for nonepublic List<BackendCustomMetric> getCustomMetrics()
null
for nonepublic Backend setCustomMetrics(List<BackendCustomMetric> customMetrics)
customMetrics
- customMetrics or null
for nonepublic String getDescription()
null
for nonepublic Backend setDescription(String description)
description
- description or null
for nonepublic Boolean getFailover()
null
for nonepublic Backend setFailover(Boolean failover)
failover
- failover or null
for nonepublic String getGroup()
null
for nonepublic Backend setGroup(String group)
group
- group or null
for nonepublic Integer getMaxConnections()
null
for nonepublic Backend setMaxConnections(Integer maxConnections)
maxConnections
- maxConnections or null
for nonepublic Integer getMaxConnectionsPerEndpoint()
null
for nonepublic Backend setMaxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint)
maxConnectionsPerEndpoint
- maxConnectionsPerEndpoint or null
for nonepublic Integer getMaxConnectionsPerInstance()
null
for nonepublic Backend setMaxConnectionsPerInstance(Integer maxConnectionsPerInstance)
maxConnectionsPerInstance
- maxConnectionsPerInstance or null
for nonepublic Integer getMaxRate()
null
for nonepublic Backend setMaxRate(Integer maxRate)
maxRate
- maxRate or null
for nonepublic Float getMaxRatePerEndpoint()
null
for nonepublic Backend setMaxRatePerEndpoint(Float maxRatePerEndpoint)
maxRatePerEndpoint
- maxRatePerEndpoint or null
for nonepublic Float getMaxRatePerInstance()
null
for nonepublic Backend setMaxRatePerInstance(Float maxRatePerInstance)
maxRatePerInstance
- maxRatePerInstance or null
for nonepublic Float getMaxUtilization()
null
for nonepublic Backend setMaxUtilization(Float maxUtilization)
maxUtilization
- maxUtilization or null
for nonepublic String getPreference()
null
for nonepublic Backend setPreference(String preference)
preference
- preference or null
for nonepublic Backend set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Backend clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.