target.apidocs.com.google.api.services.sqladmin.model.LocationPreference.html Maven / Gradle / Ivy
The newest version!
LocationPreference (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.model
Class LocationPreference
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sqladmin.model.LocationPreference
-
public final class LocationPreference
extends com.google.api.client.json.GenericJson
Preferred location. This specifies where a Cloud SQL instance is located. Note that if the
preferred location is not available, the instance will be located as close as possible within the
region. Only one location may be specified.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
LocationPreference()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.).
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getFollowGaeApplication
public String getFollowGaeApplication()
The App Engine application to follow, it must be in the same region as the Cloud SQL instance.
WARNING: Changing this might restart the instance.
- Returns:
- value or
null
for none
-
setFollowGaeApplication
public LocationPreference setFollowGaeApplication(String followGaeApplication)
The App Engine application to follow, it must be in the same region as the Cloud SQL instance.
WARNING: Changing this might restart the instance.
- Parameters:
followGaeApplication
- followGaeApplication or null
for none
-
getKind
public String getKind()
This is always `sql#locationPreference`.
- Returns:
- value or
null
for none
-
setKind
public LocationPreference setKind(String kind)
This is always `sql#locationPreference`.
- Parameters:
kind
- kind or null
for none
-
getSecondaryZone
public String getSecondaryZone()
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-
central1-b, etc.). To disable this field, set it to 'no_secondary_zone'.
- Returns:
- value or
null
for none
-
setSecondaryZone
public LocationPreference setSecondaryZone(String secondaryZone)
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-
central1-b, etc.). To disable this field, set it to 'no_secondary_zone'.
- Parameters:
secondaryZone
- secondaryZone or null
for none
-
getZone
public String getZone()
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING:
Changing this might restart the instance.
- Returns:
- value or
null
for none
-
setZone
public LocationPreference setZone(String zone)
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING:
Changing this might restart the instance.
- Parameters:
zone
- zone or null
for none
-
set
public LocationPreference set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LocationPreference clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy