public class CreateMigrateJobRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateMigrateJobRequest() |
CreateMigrateJobRequest(CreateMigrateJobRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
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, SQL Server, and TDSQL-C for MySQL.
|
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, Percona, and SQL Server.
|
SrcInfo |
getSrcInfo()
Get Source instance information, which is correlated with the migration task type
|
SrcInfo[] |
getSrcInfoMulti()
Get Source instance information, which is correlated with the migration task type.
|
String |
getSrcNodeType()
Get Source instance type.
|
TagItem[] |
getTags()
Get Tag of the instance to be migrated.
|
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, SQL Server, and TDSQL-C for MySQL.
|
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, Percona, and SQL Server.
|
void |
setSrcInfo(SrcInfo SrcInfo)
Set Source instance information, which is correlated with the migration task type
|
void |
setSrcInfoMulti(SrcInfo[] SrcInfoMulti)
Set Source instance information, which is correlated with the migration task type.
|
void |
setSrcNodeType(String SrcNodeType)
Set Source instance type.
|
void |
setTags(TagItem[] Tags)
Set Tag of the instance to be migrated.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateMigrateJobRequest()
public CreateMigrateJobRequest(CreateMigrateJobRequest source)
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, Percona, and SQL Server. 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, SQL Server, and TDSQL-C for MySQL. 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"}]public TagItem[] getTags()
public void setTags(TagItem[] Tags)
Tags
- Tag of the instance to be migrated.public String getSrcNodeType()
public void setSrcNodeType(String SrcNodeType)
SrcNodeType
- Source instance type. `simple`: Primary/Secondary node; `cluster`: Cluster node. If this field is left empty, the value defaults to primary/secondary node.public SrcInfo[] getSrcInfoMulti()
public void setSrcInfoMulti(SrcInfo[] SrcInfoMulti)
SrcInfoMulti
- Source instance information, which is correlated with the migration task type.Copyright © 2024. All rights reserved.