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

target.apidocs.com.google.api.services.sql.model.DemoteMasterContext.html Maven / Gradle / Ivy

There is a newer version: v1beta4-rev20201026-1.30.10
Show newest version






DemoteMasterContext (Cloud SQL Admin API v1beta4-rev20201007-1.30.10)












com.google.api.services.sql.model

Class DemoteMasterContext

    • Constructor Detail

      • DemoteMasterContext

        public DemoteMasterContext()
    • Method Detail

      • getKind

        public String getKind()
        This is always *sql#demoteMasterContext*.
        Returns:
        value or null for none
      • setKind

        public DemoteMasterContext setKind(String kind)
        This is always *sql#demoteMasterContext*.
        Parameters:
        kind - kind or null for none
      • getMasterInstanceName

        public String getMasterInstanceName()
        The name of the instance which will act as on-premises master in the replication setup.
        Returns:
        value or null for none
      • setMasterInstanceName

        public DemoteMasterContext setMasterInstanceName(String masterInstanceName)
        The name of the instance which will act as on-premises master in the replication setup.
        Parameters:
        masterInstanceName - masterInstanceName or null for none
      • getReplicaConfiguration

        public DemoteMasterConfiguration getReplicaConfiguration()
        Configuration specific to read-replicas replicating from the on-premises master.
        Returns:
        value or null for none
      • setReplicaConfiguration

        public DemoteMasterContext setReplicaConfiguration(DemoteMasterConfiguration replicaConfiguration)
        Configuration specific to read-replicas replicating from the on-premises master.
        Parameters:
        replicaConfiguration - replicaConfiguration or null for none
      • getVerifyGtidConsistency

        public Boolean getVerifyGtidConsistency()
        Verify GTID consistency for demote operation. Default value: *True*. Second Generation instances only. Setting this flag to false enables you to bypass GTID consistency check between on-premises master and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
        Returns:
        value or null for none
      • setVerifyGtidConsistency

        public DemoteMasterContext setVerifyGtidConsistency(Boolean verifyGtidConsistency)
        Verify GTID consistency for demote operation. Default value: *True*. Second Generation instances only. Setting this flag to false enables you to bypass GTID consistency check between on-premises master and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
        Parameters:
        verifyGtidConsistency - verifyGtidConsistency or null for none

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy