public final class LocationPreference 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 Cloud SQL Admin 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 |
|---|
LocationPreference() |
| Modifier and Type | Method and Description |
|---|---|
LocationPreference |
clone() |
String |
getFollowGaeApplication()
The App Engine application to follow, it must be in the same region as the Cloud SQL instance.
|
String |
getKind()
This is always `sql#locationPreference`.
|
String |
getSecondaryZone()
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-
central1-b, etc.).
|
String |
getZone()
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).
|
LocationPreference |
set(String fieldName,
Object value) |
LocationPreference |
setFollowGaeApplication(String followGaeApplication)
The App Engine application to follow, it must be in the same region as the Cloud SQL instance.
|
LocationPreference |
setKind(String kind)
This is always `sql#locationPreference`.
|
LocationPreference |
setSecondaryZone(String secondaryZone)
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-
central1-b, etc.).
|
LocationPreference |
setZone(String zone)
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).
|
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 getFollowGaeApplication()
null for nonepublic LocationPreference setFollowGaeApplication(String followGaeApplication)
followGaeApplication - followGaeApplication or null for nonepublic String getKind()
null for nonepublic LocationPreference setKind(String kind)
kind - kind or null for nonepublic String getSecondaryZone()
null for nonepublic LocationPreference setSecondaryZone(String secondaryZone)
secondaryZone - secondaryZone or null for nonepublic String getZone()
null for nonepublic LocationPreference setZone(String zone)
zone - zone or null for nonepublic LocationPreference set(String fieldName, Object value)
set in class GenericJsonpublic LocationPreference clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.