public class MigrateOption extends AbstractModel
| Constructor and Description | 
|---|
| MigrateOption() | 
| MigrateOption(MigrateOption 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 | 
|---|---|
| ConsistencyOption | getConsistency()Get Data consistency check option. | 
| DatabaseTableObject | getDatabaseTable()Get Migration object options, which tell DTS which database/table objects should be migrated. | 
| KeyValuePairOption[] | getExtraAttr()Get Additional information. | 
| Boolean | getIsDstReadOnly()Get Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. | 
| Boolean | getIsMigrateAccount()Get Whether to migrate accounts. | 
| Boolean | getIsOverrideRoot()Get Whether to use the `Root` account in the source database to overwrite that in the target database. | 
| String | getMigrateType()Get Migration type. | 
| void | setConsistency(ConsistencyOption Consistency)Set Data consistency check option. | 
| void | setDatabaseTable(DatabaseTableObject DatabaseTable)Set Migration object options, which tell DTS which database/table objects should be migrated. | 
| void | setExtraAttr(KeyValuePairOption[] ExtraAttr)Set Additional information. | 
| void | setIsDstReadOnly(Boolean IsDstReadOnly)Set Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. | 
| void | setIsMigrateAccount(Boolean IsMigrateAccount)Set Whether to migrate accounts. | 
| void | setIsOverrideRoot(Boolean IsOverrideRoot)Set Whether to use the `Root` account in the source database to overwrite that in the target database. | 
| void | setMigrateType(String MigrateType)Set Migration 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, toJsonStringpublic MigrateOption()
public MigrateOption(MigrateOption source)
public DatabaseTableObject getDatabaseTable()
public void setDatabaseTable(DatabaseTableObject DatabaseTable)
DatabaseTable - Migration object options, which tell DTS which database/table objects should be migrated.
Note: This field may return null, indicating that no valid values can be obtained.public String getMigrateType()
public void setMigrateType(String MigrateType)
MigrateType - Migration type. Valid values: `full`, `structure`, `fullAndIncrement`. Default value: `fullAndIncrement`.
Note: This field may return null, indicating that no valid values can be obtained.public ConsistencyOption getConsistency()
public void setConsistency(ConsistencyOption Consistency)
Consistency - Data consistency check option. Data consistency check is disabled by default.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsMigrateAccount()
public void setIsMigrateAccount(Boolean IsMigrateAccount)
IsMigrateAccount - Whether to migrate accounts. Valid values: `yes`, `no`.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsOverrideRoot()
public void setIsOverrideRoot(Boolean IsOverrideRoot)
IsOverrideRoot - Whether to use the `Root` account in the source database to overwrite that in the target database. Valid values: `false`, `true`. For database/table or structural migration, you should specify `false`. Note that this parameter takes effect only for OldDTS.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsDstReadOnly()
public void setIsDstReadOnly(Boolean IsDstReadOnly)
IsDstReadOnly - Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. Valid values: `true`, `false`. Default value: `false`.
Note: This field may return null, indicating that no valid values can be obtained.public KeyValuePairOption[] getExtraAttr()
public void setExtraAttr(KeyValuePairOption[] ExtraAttr)
ExtraAttr - Additional information. You can set additional parameters for certain database types. For Redis, you can define the following parameters: 
["ClientOutputBufferHardLimit":512,     Hard limit of the replica buffer zone capacity in MB    "ClientOutputBufferSoftLimit":512,      Soft limit of the replica buffer zone capacity in MB    "ClientOutputBufferPersistTime":60, Soft limit duration of the replica buffer zone in seconds   "ReplBacklogSize":512,  Limit of the circular buffer zone capacity in MB        "ReplTimeout":120,              Replication timeout period in seconds]
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.