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

target.apidocs.com.google.api.services.sqladmin.model.ReplicationCluster.html Maven / Gradle / Ivy

The newest version!






ReplicationCluster (Cloud SQL Admin API v1-rev20241108-2.0.0)












com.google.api.services.sqladmin.model

Class ReplicationCluster

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


    public final class ReplicationCluster
    extends com.google.api.client.json.GenericJson
    A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL.

    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

      • ReplicationCluster

        public ReplicationCluster()
    • Method Detail

      • getDrReplica

        public Boolean getDrReplica()
        Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
        Returns:
        value or null for none
      • setDrReplica

        public ReplicationCluster setDrReplica(Boolean drReplica)
        Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
        Parameters:
        drReplica - drReplica or null for none
      • getFailoverDrReplicaName

        public String getFailoverDrReplicaName()
        Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
        Returns:
        value or null for none
      • setFailoverDrReplicaName

        public ReplicationCluster setFailoverDrReplicaName(String failoverDrReplicaName)
        Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
        Parameters:
        failoverDrReplicaName - failoverDrReplicaName or null for none
      • getPsaWriteEndpoint

        public String getPsaWriteEndpoint()
        Output only. If set, it indicates this instance has a private service access (PSA) dns endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, the dns should be pointing to this instance. After Switchover or Replica failover, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance does not yet have a replica, or had a DR replica that was deleted.
        Returns:
        value or null for none
      • setPsaWriteEndpoint

        public ReplicationCluster setPsaWriteEndpoint(String psaWriteEndpoint)
        Output only. If set, it indicates this instance has a private service access (PSA) dns endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, the dns should be pointing to this instance. After Switchover or Replica failover, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance does not yet have a replica, or had a DR replica that was deleted.
        Parameters:
        psaWriteEndpoint - psaWriteEndpoint or null for none
      • clone

        public ReplicationCluster 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