public final class BackendServiceFailoverPolicy
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 |
|---|
BackendServiceFailoverPolicy() |
| Modifier and Type | Method and Description |
|---|---|
BackendServiceFailoverPolicy |
clone() |
java.lang.Boolean |
getDisableConnectionDrainOnFailover()
On failover or failback, this field indicates whether connection drain will be honored.
|
java.lang.Boolean |
getDropTrafficIfUnhealthy()
This option is used only when no healthy VMs are detected in the primary and backup instance
groups.
|
java.lang.Float |
getFailoverRatio()
The value of the field must be in [0, 1].
|
BackendServiceFailoverPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
BackendServiceFailoverPolicy |
setDisableConnectionDrainOnFailover(java.lang.Boolean disableConnectionDrainOnFailover)
On failover or failback, this field indicates whether connection drain will be honored.
|
BackendServiceFailoverPolicy |
setDropTrafficIfUnhealthy(java.lang.Boolean dropTrafficIfUnhealthy)
This option is used only when no healthy VMs are detected in the primary and backup instance
groups.
|
BackendServiceFailoverPolicy |
setFailoverRatio(java.lang.Float failoverRatio)
The value of the field must be in [0, 1].
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Boolean getDisableConnectionDrainOnFailover()
null for nonepublic BackendServiceFailoverPolicy setDisableConnectionDrainOnFailover(java.lang.Boolean disableConnectionDrainOnFailover)
disableConnectionDrainOnFailover - disableConnectionDrainOnFailover or null for nonepublic java.lang.Boolean getDropTrafficIfUnhealthy()
null for nonepublic BackendServiceFailoverPolicy setDropTrafficIfUnhealthy(java.lang.Boolean dropTrafficIfUnhealthy)
dropTrafficIfUnhealthy - dropTrafficIfUnhealthy or null for nonepublic java.lang.Float getFailoverRatio()
null for nonepublic BackendServiceFailoverPolicy setFailoverRatio(java.lang.Float failoverRatio)
failoverRatio - failoverRatio or null for nonepublic BackendServiceFailoverPolicy set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic BackendServiceFailoverPolicy clone()
clone in class com.google.api.client.json.GenericJson