All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    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.
    • Constructor Detail

      • LocationPreference

        public LocationPreference()
    • 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
      • 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