public class CreateMigrateJobRequest extends AbstractModel
Constructor and Description |
---|
CreateMigrateJobRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getDatabaseInfo()
Get Information of the source table to be migrated, which is described in JSON string format.
|
String |
getDstAccessType()
Get Target instance access type, which currently only supports cdb (TencentDB instance)
|
String |
getDstDatabaseType()
Get Target instance access type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona.
|
DstInfo |
getDstInfo()
Get Destination instance information
|
String |
getJobName()
Get Data migration task name
|
MigrateOption |
getMigrateOption()
Get Migration task configuration options
|
String |
getSrcAccessType()
Get Source instance access type.
|
String |
getSrcDatabaseType()
Get Source instance database type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona.
|
SrcInfo |
getSrcInfo()
Get Source instance information, which is correlated with the migration task type
|
void |
setDatabaseInfo(String DatabaseInfo)
Set Information of the source table to be migrated, which is described in JSON string format.
|
void |
setDstAccessType(String DstAccessType)
Set Target instance access type, which currently only supports cdb (TencentDB instance)
|
void |
setDstDatabaseType(String DstDatabaseType)
Set Target instance access type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona.
|
void |
setDstInfo(DstInfo DstInfo)
Set Destination instance information
|
void |
setJobName(String JobName)
Set Data migration task name
|
void |
setMigrateOption(MigrateOption MigrateOption)
Set Migration task configuration options
|
void |
setSrcAccessType(String SrcAccessType)
Set Source instance access type.
|
void |
setSrcDatabaseType(String SrcDatabaseType)
Set Source instance database type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona.
|
void |
setSrcInfo(SrcInfo SrcInfo)
Set Source instance information, which is correlated with the migration task type
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getJobName()
public void setJobName(String JobName)
JobName
- Data migration task namepublic MigrateOption getMigrateOption()
public void setMigrateOption(MigrateOption MigrateOption)
MigrateOption
- Migration task configuration optionspublic String getSrcDatabaseType()
public void setSrcDatabaseType(String SrcDatabaseType)
SrcDatabaseType
- Source instance database type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona. For more information on the supported types in a specific region, see the migration task creation page in the console.public String getSrcAccessType()
public void setSrcAccessType(String SrcAccessType)
SrcAccessType
- Source instance access type. Valid values: extranet (public network), cvm (CVM-based self-created instance), dcg (Direct Connect-enabled instance), vpncloud (Tencent Cloud VPN-enabled instance), cdb (TencentDB instance), ccn (CCN instance)public SrcInfo getSrcInfo()
public void setSrcInfo(SrcInfo SrcInfo)
SrcInfo
- Source instance information, which is correlated with the migration task typepublic String getDstDatabaseType()
public void setDstDatabaseType(String DstDatabaseType)
DstDatabaseType
- Target instance access type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona. For more information on the supported types in a specific region, see the migration task creation page in the console.public String getDstAccessType()
public void setDstAccessType(String DstAccessType)
DstAccessType
- Target instance access type, which currently only supports cdb (TencentDB instance)public DstInfo getDstInfo()
public void setDstInfo(DstInfo DstInfo)
DstInfo
- Destination instance informationpublic String getDatabaseInfo()
public void setDatabaseInfo(String DatabaseInfo)
DatabaseInfo
- Information of the source table to be migrated, which is described in JSON string format. It is required if MigrateOption.MigrateObject is 2 (migrating the specified table).
For databases with a database-table structure:
[{Database:db1,Table:[table1,table2]},{Database:db2}]
For databases with a database-schema-table structure:
[{Database:db1,Schema:s1
Table:[table1,table2]},{Database:db1,Schema:s2
Table:[table1,table2]},{Database:db2,Schema:s1
Table:[table1,table2]},{Database:db3},{Database:db4
Schema:s1}]Copyright © 2020. All rights reserved.