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

com.aliyun.polardb20170801.models.FailoverDBClusterRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.polardb20170801.models;

import com.aliyun.tea.*;

public class FailoverDBClusterRequest extends TeaModel {
    /**
     * 

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. The token is case-sensitive.

* * example: *

6000170000591aed949d0f54a343f1a4233c1e7d1c5******

*/ @NameInMap("ClientToken") public String clientToken; /** *

The ID of the cluster.

*

This parameter is required.

* * example: *

pc-**************

*/ @NameInMap("DBClusterId") public String DBClusterId; @NameInMap("OwnerAccount") public String ownerAccount; @NameInMap("OwnerId") public Long ownerId; @NameInMap("ResourceOwnerAccount") public String resourceOwnerAccount; @NameInMap("ResourceOwnerId") public Long resourceOwnerId; /** *

Specifies whether to fail back to the original primary zone after a failover. Valid values:

*
    *
  • true
  • *
  • false
  • *
* * example: *

false

*/ @NameInMap("RollBackForDisaster") public Boolean rollBackForDisaster; /** *

The ID of the read-only node that you want to promote to the primary node. You can call the DescribeDBClusters operation to query node information, such as node IDs.

*
*
    *
  • If you leave this parameter empty, the system selects one or more available read-only nodes that have the highest failover priority as candidate primary nodes. If the failover to the first read-only node fails due to network issues, abnormal replication status, or other reasons, the system attempts to fail over your applications to the next read-only node until the failover is successful.
  • *
  • This parameter is required for PolarDB for Oracle and PolarDB for PostgreSQL clusters. This parameter is optional for PolarDB for MySQL clusters.
  • *
*
* * example: *

pi-***********

*/ @NameInMap("TargetDBNodeId") public String targetDBNodeId; @NameInMap("TargetZoneType") public String targetZoneType; public static FailoverDBClusterRequest build(java.util.Map map) throws Exception { FailoverDBClusterRequest self = new FailoverDBClusterRequest(); return TeaModel.build(map, self); } public FailoverDBClusterRequest setClientToken(String clientToken) { this.clientToken = clientToken; return this; } public String getClientToken() { return this.clientToken; } public FailoverDBClusterRequest setDBClusterId(String DBClusterId) { this.DBClusterId = DBClusterId; return this; } public String getDBClusterId() { return this.DBClusterId; } public FailoverDBClusterRequest setOwnerAccount(String ownerAccount) { this.ownerAccount = ownerAccount; return this; } public String getOwnerAccount() { return this.ownerAccount; } public FailoverDBClusterRequest setOwnerId(Long ownerId) { this.ownerId = ownerId; return this; } public Long getOwnerId() { return this.ownerId; } public FailoverDBClusterRequest setResourceOwnerAccount(String resourceOwnerAccount) { this.resourceOwnerAccount = resourceOwnerAccount; return this; } public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public FailoverDBClusterRequest setResourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } public Long getResourceOwnerId() { return this.resourceOwnerId; } public FailoverDBClusterRequest setRollBackForDisaster(Boolean rollBackForDisaster) { this.rollBackForDisaster = rollBackForDisaster; return this; } public Boolean getRollBackForDisaster() { return this.rollBackForDisaster; } public FailoverDBClusterRequest setTargetDBNodeId(String targetDBNodeId) { this.targetDBNodeId = targetDBNodeId; return this; } public String getTargetDBNodeId() { return this.targetDBNodeId; } public FailoverDBClusterRequest setTargetZoneType(String targetZoneType) { this.targetZoneType = targetZoneType; return this; } public String getTargetZoneType() { return this.targetZoneType; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy