public class ModifyMigrateJobRequest extends AbstractModel
Constructor and Description |
---|
ModifyMigrateJobRequest() |
ModifyMigrateJobRequest(ModifyMigrateJobRequest 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 When migrating the specified table, you need to set the information of the source database table to be migrated, which should be described in JSON string format.
|
String |
getDstAccessType()
Get Target instance access type.
|
DstInfo |
getDstInfo()
Get Target instance information.
|
String |
getJobId()
Get ID of the data migration task to be modified
|
String |
getJobName()
Get Data migration task name
|
MigrateOption |
getMigrateOption()
Get Migration task configuration options
|
String |
getSrcAccessType()
Get Source instance access type.
|
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.
|
void |
setDatabaseInfo(String DatabaseInfo)
Set When migrating the specified table, you need to set the information of the source database table to be migrated, which should be described in JSON string format.
|
void |
setDstAccessType(String DstAccessType)
Set Target instance access type.
|
void |
setDstInfo(DstInfo DstInfo)
Set Target instance information.
|
void |
setJobId(String JobId)
Set ID of the data migration task to be modified
|
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 |
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 |
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 ModifyMigrateJobRequest()
public ModifyMigrateJobRequest(ModifyMigrateJobRequest source)
public String getJobId()
public void setJobId(String JobId)
JobId
- ID of the data migration task to be modifiedpublic 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 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)public SrcInfo getSrcInfo()
public void setSrcInfo(SrcInfo SrcInfo)
SrcInfo
- Source instance information, which is correlated with the migration task typepublic String getDstAccessType()
public void setDstAccessType(String DstAccessType)
DstAccessType
- Target 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). Currently, only `cdb` is supportedpublic DstInfo getDstInfo()
public void setDstInfo(DstInfo DstInfo)
DstInfo
- Target instance information. The region where the target instance is located cannot be modified.public String getDatabaseInfo()
public void setDatabaseInfo(String DatabaseInfo)
DatabaseInfo
- When migrating the specified table, you need to set the information of the source database table to be migrated, which should be described in JSON string format. Below are examples.
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"}]
This field does not need to be set when the entire instance is to be migratedpublic 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 © 2023. All rights reserved.