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

com.aliyun.sdk.service.polardb20170801.models.DescribeDBClusterMigrationResponseBody Maven / Gradle / Ivy

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

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DescribeDBClusterMigrationResponseBody} extends {@link TeaModel}
 *
 * 

DescribeDBClusterMigrationResponseBody

*/ public class DescribeDBClusterMigrationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Comment") private String comment; @com.aliyun.core.annotation.NameInMap("DBClusterEndpointList") private java.util.List DBClusterEndpointList; @com.aliyun.core.annotation.NameInMap("DBClusterId") private String DBClusterId; @com.aliyun.core.annotation.NameInMap("DBClusterReadWriteMode") private String DBClusterReadWriteMode; @com.aliyun.core.annotation.NameInMap("DelayedSeconds") private Integer delayedSeconds; @com.aliyun.core.annotation.NameInMap("DtsInstanceId") private String dtsInstanceId; @com.aliyun.core.annotation.NameInMap("ExpiredTime") private String expiredTime; @com.aliyun.core.annotation.NameInMap("MigrationStatus") private String migrationStatus; @com.aliyun.core.annotation.NameInMap("RdsEndpointList") private java.util.List rdsEndpointList; @com.aliyun.core.annotation.NameInMap("RdsReadWriteMode") private String rdsReadWriteMode; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SourceRDSDBInstanceId") private String sourceRDSDBInstanceId; @com.aliyun.core.annotation.NameInMap("SrcDbType") private String srcDbType; @com.aliyun.core.annotation.NameInMap("Topologies") private String topologies; private DescribeDBClusterMigrationResponseBody(Builder builder) { this.comment = builder.comment; this.DBClusterEndpointList = builder.DBClusterEndpointList; this.DBClusterId = builder.DBClusterId; this.DBClusterReadWriteMode = builder.DBClusterReadWriteMode; this.delayedSeconds = builder.delayedSeconds; this.dtsInstanceId = builder.dtsInstanceId; this.expiredTime = builder.expiredTime; this.migrationStatus = builder.migrationStatus; this.rdsEndpointList = builder.rdsEndpointList; this.rdsReadWriteMode = builder.rdsReadWriteMode; this.requestId = builder.requestId; this.sourceRDSDBInstanceId = builder.sourceRDSDBInstanceId; this.srcDbType = builder.srcDbType; this.topologies = builder.topologies; } public static Builder builder() { return new Builder(); } public static DescribeDBClusterMigrationResponseBody create() { return builder().build(); } /** * @return comment */ public String getComment() { return this.comment; } /** * @return DBClusterEndpointList */ public java.util.List getDBClusterEndpointList() { return this.DBClusterEndpointList; } /** * @return DBClusterId */ public String getDBClusterId() { return this.DBClusterId; } /** * @return DBClusterReadWriteMode */ public String getDBClusterReadWriteMode() { return this.DBClusterReadWriteMode; } /** * @return delayedSeconds */ public Integer getDelayedSeconds() { return this.delayedSeconds; } /** * @return dtsInstanceId */ public String getDtsInstanceId() { return this.dtsInstanceId; } /** * @return expiredTime */ public String getExpiredTime() { return this.expiredTime; } /** * @return migrationStatus */ public String getMigrationStatus() { return this.migrationStatus; } /** * @return rdsEndpointList */ public java.util.List getRdsEndpointList() { return this.rdsEndpointList; } /** * @return rdsReadWriteMode */ public String getRdsReadWriteMode() { return this.rdsReadWriteMode; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return sourceRDSDBInstanceId */ public String getSourceRDSDBInstanceId() { return this.sourceRDSDBInstanceId; } /** * @return srcDbType */ public String getSrcDbType() { return this.srcDbType; } /** * @return topologies */ public String getTopologies() { return this.topologies; } public static final class Builder { private String comment; private java.util.List DBClusterEndpointList; private String DBClusterId; private String DBClusterReadWriteMode; private Integer delayedSeconds; private String dtsInstanceId; private String expiredTime; private String migrationStatus; private java.util.List rdsEndpointList; private String rdsReadWriteMode; private String requestId; private String sourceRDSDBInstanceId; private String srcDbType; private String topologies; /** *

The mode of the source ApsaraDB RDS instance. Valid values:

*
    *
  • rw: read and write mode
  • *
  • ro: read-only mode
  • *
* * example: *

test

*/ public Builder comment(String comment) { this.comment = comment; return this; } /** *

The port number.

*/ public Builder DBClusterEndpointList(java.util.List DBClusterEndpointList) { this.DBClusterEndpointList = DBClusterEndpointList; return this; } /** *

The replication latency between the ApsaraDB RDS instance and the PolarDB cluster. Unit: seconds.

* * example: *

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

*/ public Builder DBClusterId(String DBClusterId) { this.DBClusterId = DBClusterId; return this; } /** *

Details about the endpoints.

* * example: *

ro

*/ public Builder DBClusterReadWriteMode(String DBClusterReadWriteMode) { this.DBClusterReadWriteMode = DBClusterReadWriteMode; return this; } /** *

The vSwitch ID.

* * example: *

0

*/ public Builder delayedSeconds(Integer delayedSeconds) { this.delayedSeconds = delayedSeconds; return this; } /** *

The network type of the endpoint. Valid values:

*
    *
  • Public: the public endpoint
  • *
  • Private: the internal endpoint (VPC)
  • *
  • Inner: the internal endpoint (classic network)
  • *
* * example: *

dts**********618bs

*/ public Builder dtsInstanceId(String dtsInstanceId) { this.dtsInstanceId = dtsInstanceId; return this; } /** *

The mode of the PolarDB cluster. Valid values:

*
    *
  • rw: read and write mode
  • *
  • ro: read-only mode
  • *
* * example: *

2020-06-17T01:56:36Z

*/ public Builder expiredTime(String expiredTime) { this.expiredTime = expiredTime; return this; } /** *

The endpoint.

* * example: *

RDS2POLARDB_SYNCING

*/ public Builder migrationStatus(String migrationStatus) { this.migrationStatus = migrationStatus; return this; } /** *

The endpoints of the ApsaraDB RDS instance.

*/ public Builder rdsEndpointList(java.util.List rdsEndpointList) { this.rdsEndpointList = rdsEndpointList; return this; } /** *

The ID of the synchronous task.

* * example: *

rw

*/ public Builder rdsReadWriteMode(String rdsReadWriteMode) { this.rdsReadWriteMode = rdsReadWriteMode; return this; } /** *

The ID of the source ApsaraDB RDS instance.

* * example: *

F2A9EFA7-915F-4572-8299-85A307******

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** *

The endpoints of the ApsaraDB RDS instance.

* * example: *

rm-************

*/ public Builder sourceRDSDBInstanceId(String sourceRDSDBInstanceId) { this.sourceRDSDBInstanceId = sourceRDSDBInstanceId; return this; } /** *

The type of the source database. Valid values:

*
    *
  • PolarDBMySQL: The source database is a PolarDB for MySQL database when the major version of your PolarDB cluster is upgraded.
  • *
  • RDS: The source database is an ApsaraDB RDS database when data is migrated from ApsaraDB RDS to PolarDB for MySQL.
  • *
* * example: *

PolarDBMySQL

*/ public Builder srcDbType(String srcDbType) { this.srcDbType = srcDbType; return this; } /** *

The migration state of the PolarDB cluster. Valid values:

*
    *
  • NO_MIGRATION: No migration task is running.
  • *
  • RDS2POLARDB_CLONING: Data is being replicated.
  • *
  • RDS2POLARDB_SYNCING: Data is being replicated. During the replication, the PolarDB cluster is running in read-only mode and the source ApsaraDB RDS instance is running in read and write mode.
  • *
  • SWITCHING: Databases are being switched.
  • *
  • POLARDB2RDS_SYNCING: Databases are switched. The PolarDB cluster is running in read and write mode and the source ApsaraDB RDS instance is running in read-only mode. In this state, you can modify the endpoints for your applications.
  • *
  • ROLLBACK: The migration is being rolled back. After the rollback is complete, the value RDS2POLARDB_SYNCING is returned.
  • *
  • CLOSING_MIGRATION: The migration task is being terminated.
  • *
* * example: *

RDS2POLARDB

*/ public Builder topologies(String topologies) { this.topologies = topologies; return this; } public DescribeDBClusterMigrationResponseBody build() { return new DescribeDBClusterMigrationResponseBody(this); } } /** * * {@link DescribeDBClusterMigrationResponseBody} extends {@link TeaModel} * *

DescribeDBClusterMigrationResponseBody

*/ public static class AddressItems extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConnectionString") private String connectionString; @com.aliyun.core.annotation.NameInMap("IPAddress") private String IPAddress; @com.aliyun.core.annotation.NameInMap("NetType") private String netType; @com.aliyun.core.annotation.NameInMap("Port") private String port; @com.aliyun.core.annotation.NameInMap("SSLEnabled") private String SSLEnabled; @com.aliyun.core.annotation.NameInMap("VPCId") private String VPCId; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; private AddressItems(Builder builder) { this.connectionString = builder.connectionString; this.IPAddress = builder.IPAddress; this.netType = builder.netType; this.port = builder.port; this.SSLEnabled = builder.SSLEnabled; this.VPCId = builder.VPCId; this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static AddressItems create() { return builder().build(); } /** * @return connectionString */ public String getConnectionString() { return this.connectionString; } /** * @return IPAddress */ public String getIPAddress() { return this.IPAddress; } /** * @return netType */ public String getNetType() { return this.netType; } /** * @return port */ public String getPort() { return this.port; } /** * @return SSLEnabled */ public String getSSLEnabled() { return this.SSLEnabled; } /** * @return VPCId */ public String getVPCId() { return this.VPCId; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } public static final class Builder { private String connectionString; private String IPAddress; private String netType; private String port; private String SSLEnabled; private String VPCId; private String vSwitchId; /** *

Indicates whether SSL encryption is enabled. Valid values:

*
    *
  • Enabled
  • *
  • Disabled
  • *
* * example: *

pc-**************.rwlb.rds.aliyuncs.com

*/ public Builder connectionString(String connectionString) { this.connectionString = connectionString; return this; } /** *

The description of a migration exception. If no exception occurs during the migration, an empty string is returned.

* * example: *

192...10

*/ public Builder IPAddress(String IPAddress) { this.IPAddress = IPAddress; return this; } /** *

The ID of the endpoint.

* * example: *

Private

*/ public Builder netType(String netType) { this.netType = netType; return this; } /** *

The type of the endpoint. Valid values:

*
    *
  • Cluster: the default cluster endpoint
  • *
  • Primary: the primary endpoint
  • *
  • Custom: the custom endpoint
  • *
* * example: *

3306

*/ public Builder port(String port) { this.port = port; return this; } /** *

The ID of the request.

* * example: *

Enabled

*/ public Builder SSLEnabled(String SSLEnabled) { this.SSLEnabled = SSLEnabled; return this; } /** *

The read/write mode. Valid values:

*
    *
  • ReadWrite: receives and forwards read and write requests (automatic read-write splitting).
  • *
  • ReadOnly (default): receives and forwards read requests only.
  • *
* * example: *

vpc-**********

*/ public Builder VPCId(String VPCId) { this.VPCId = VPCId; return this; } /** *

The IP address of the endpoint.

* * example: *

vsw-**********

*/ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } public AddressItems build() { return new AddressItems(this); } } } /** * * {@link DescribeDBClusterMigrationResponseBody} extends {@link TeaModel} * *

DescribeDBClusterMigrationResponseBody

*/ public static class DBClusterEndpointList extends TeaModel { @com.aliyun.core.annotation.NameInMap("AddressItems") private java.util.List addressItems; @com.aliyun.core.annotation.NameInMap("DBEndpointId") private String DBEndpointId; @com.aliyun.core.annotation.NameInMap("EndpointType") private String endpointType; @com.aliyun.core.annotation.NameInMap("ReadWriteMode") private String readWriteMode; private DBClusterEndpointList(Builder builder) { this.addressItems = builder.addressItems; this.DBEndpointId = builder.DBEndpointId; this.endpointType = builder.endpointType; this.readWriteMode = builder.readWriteMode; } public static Builder builder() { return new Builder(); } public static DBClusterEndpointList create() { return builder().build(); } /** * @return addressItems */ public java.util.List getAddressItems() { return this.addressItems; } /** * @return DBEndpointId */ public String getDBEndpointId() { return this.DBEndpointId; } /** * @return endpointType */ public String getEndpointType() { return this.endpointType; } /** * @return readWriteMode */ public String getReadWriteMode() { return this.readWriteMode; } public static final class Builder { private java.util.List addressItems; private String DBEndpointId; private String endpointType; private String readWriteMode; /** *

The VPC ID.

*/ public Builder addressItems(java.util.List addressItems) { this.addressItems = addressItems; return this; } /** *

The expiration time of the replication between ApsaraDB RDS and PolarDB. The time is in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.

* * example: *

pe-***********

*/ public Builder DBEndpointId(String DBEndpointId) { this.DBEndpointId = DBEndpointId; return this; } /** *

The ID of the cluster.

* * example: *

Cluster

*/ public Builder endpointType(String endpointType) { this.endpointType = endpointType; return this; } /** *

The synchronization direction. Valid values:

*
    *
  • RDS2POLARDB: Data is replicated from an ApsaraDB RDS instance to a PolarDB cluster.
  • *
  • POLARDB2RDS: Data is replicated from a PolarDB cluster to an ApsaraDB RDS instance.
  • *
* * example: *

ReadOnly

*/ public Builder readWriteMode(String readWriteMode) { this.readWriteMode = readWriteMode; return this; } public DBClusterEndpointList build() { return new DBClusterEndpointList(this); } } } /** * * {@link DescribeDBClusterMigrationResponseBody} extends {@link TeaModel} * *

DescribeDBClusterMigrationResponseBody

*/ public static class RdsEndpointListAddressItems extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConnectionString") private String connectionString; @com.aliyun.core.annotation.NameInMap("IPAddress") private String IPAddress; @com.aliyun.core.annotation.NameInMap("NetType") private String netType; @com.aliyun.core.annotation.NameInMap("Port") private String port; @com.aliyun.core.annotation.NameInMap("SSLEnabled") private String SSLEnabled; @com.aliyun.core.annotation.NameInMap("VPCId") private String VPCId; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; private RdsEndpointListAddressItems(Builder builder) { this.connectionString = builder.connectionString; this.IPAddress = builder.IPAddress; this.netType = builder.netType; this.port = builder.port; this.SSLEnabled = builder.SSLEnabled; this.VPCId = builder.VPCId; this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static RdsEndpointListAddressItems create() { return builder().build(); } /** * @return connectionString */ public String getConnectionString() { return this.connectionString; } /** * @return IPAddress */ public String getIPAddress() { return this.IPAddress; } /** * @return netType */ public String getNetType() { return this.netType; } /** * @return port */ public String getPort() { return this.port; } /** * @return SSLEnabled */ public String getSSLEnabled() { return this.SSLEnabled; } /** * @return VPCId */ public String getVPCId() { return this.VPCId; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } public static final class Builder { private String connectionString; private String IPAddress; private String netType; private String port; private String SSLEnabled; private String VPCId; private String vSwitchId; /** *

Indicates whether SSL encryption is enabled. Valid values:

*
    *
  • Enabled
  • *
  • Disabled
  • *
* * example: *

rm-***********.mysql.rds.aliyuncs.com

*/ public Builder connectionString(String connectionString) { this.connectionString = connectionString; return this; } /** *

The type of the source database. Valid values:

*
    *
  • PolarDBMySQL: The source database is a PolarDB for MySQL database when the major version of your PolarDB cluster is upgraded.
  • *
  • RDS: The source database is an ApsaraDB RDS database when data is migrated from ApsaraDB RDS to PolarDB for MySQL.
  • *
* * example: *

172...173

*/ public Builder IPAddress(String IPAddress) { this.IPAddress = IPAddress; return this; } /** *

The ID of the endpoint.

* * example: *

Private

*/ public Builder netType(String netType) { this.netType = netType; return this; } /** *

The type of the endpoint. Valid values:

*
    *
  • Normal: the standard endpoint
  • *
  • ReadWriteSplitting: the read/write splitting endpoint
  • *
* * example: *

3306

*/ public Builder port(String port) { this.port = port; return this; } /** *

Indicates whether SSL encryption is enabled. Valid values:

*
    *
  • Enabled
  • *
  • Disabled
  • *
* * example: *

Enabled

*/ public Builder SSLEnabled(String SSLEnabled) { this.SSLEnabled = SSLEnabled; return this; } /** *

The instance type.

* * example: *

vpc-************

*/ public Builder VPCId(String VPCId) { this.VPCId = VPCId; return this; } /** *

The IP address of the endpoint.

* * example: *

vsw-**************

*/ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } public RdsEndpointListAddressItems build() { return new RdsEndpointListAddressItems(this); } } } /** * * {@link DescribeDBClusterMigrationResponseBody} extends {@link TeaModel} * *

DescribeDBClusterMigrationResponseBody

*/ public static class RdsEndpointList extends TeaModel { @com.aliyun.core.annotation.NameInMap("AddressItems") private java.util.List addressItems; @com.aliyun.core.annotation.NameInMap("CustinsType") private String custinsType; @com.aliyun.core.annotation.NameInMap("DBEndpointId") private String DBEndpointId; @com.aliyun.core.annotation.NameInMap("EndpointType") private String endpointType; private RdsEndpointList(Builder builder) { this.addressItems = builder.addressItems; this.custinsType = builder.custinsType; this.DBEndpointId = builder.DBEndpointId; this.endpointType = builder.endpointType; } public static Builder builder() { return new Builder(); } public static RdsEndpointList create() { return builder().build(); } /** * @return addressItems */ public java.util.List getAddressItems() { return this.addressItems; } /** * @return custinsType */ public String getCustinsType() { return this.custinsType; } /** * @return DBEndpointId */ public String getDBEndpointId() { return this.DBEndpointId; } /** * @return endpointType */ public String getEndpointType() { return this.endpointType; } public static final class Builder { private java.util.List addressItems; private String custinsType; private String DBEndpointId; private String endpointType; /** *

The VPC ID.

*/ public Builder addressItems(java.util.List addressItems) { this.addressItems = addressItems; return this; } /** *

The instance type.

* * example: *

ReadOnly * Maxscale * Primary

*/ public Builder custinsType(String custinsType) { this.custinsType = custinsType; return this; } /** *

The ID of the endpoint.

* * example: *

rm-************-normal

*/ public Builder DBEndpointId(String DBEndpointId) { this.DBEndpointId = DBEndpointId; return this; } /** *

The type of the endpoint. Valid values:

*
    *
  • Normal: the standard endpoint
  • *
  • ReadWriteSplitting: the read/write splitting endpoint
  • *
* * example: *

Normal

*/ public Builder endpointType(String endpointType) { this.endpointType = endpointType; return this; } public RdsEndpointList build() { return new RdsEndpointList(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy