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

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

The newest version!






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












com.google.api.services.sqladmin.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 primary instance 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 primary instance 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 primary instance.
        Returns:
        value or null for none
      • setReplicaConfiguration

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

        public Boolean getSkipReplicationSetup()
        Flag to skip replication setup on the instance.
        Returns:
        value or null for none
      • setSkipReplicationSetup

        public DemoteMasterContext setSkipReplicationSetup(Boolean skipReplicationSetup)
        Flag to skip replication setup on the instance.
        Parameters:
        skipReplicationSetup - skipReplicationSetup or null for none
      • getVerifyGtidConsistency

        public Boolean getVerifyGtidConsistency()
        Verify the GTID consistency for demote operation. Default value: `True`. Setting this flag to `false` enables you to bypass the GTID consistency check between on-premises primary instance 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 the GTID consistency for demote operation. Default value: `True`. Setting this flag to `false` enables you to bypass the GTID consistency check between on-premises primary instance 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
      • clone

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