public class DynamicOptions extends AbstractModel
header, skipSign
Constructor and Description |
---|
DynamicOptions() |
DynamicOptions(DynamicOptions 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 |
---|---|
ConflictHandleOption |
getConflictHandleOption()
Get Detailed options of the conflict resolution method, such as the conditionally overwritten rows and condition operations for the “conditionally overwrite” method.
|
String |
getConflictHandleType()
Get Conflict resolution method.
|
DdlOption[] |
getDdlOptions()
Get DDL options to be synced.
|
String[] |
getOpTypes()
Get DML and DDL options to be synced.
|
void |
setConflictHandleOption(ConflictHandleOption ConflictHandleOption)
Set Detailed options of the conflict resolution method, such as the conditionally overwritten rows and condition operations for the “conditionally overwrite” method.
|
void |
setConflictHandleType(String ConflictHandleType)
Set Conflict resolution method.
|
void |
setDdlOptions(DdlOption[] DdlOptions)
Set DDL options to be synced.
|
void |
setOpTypes(String[] OpTypes)
Set DML and DDL options to be synced.
|
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 DynamicOptions()
public DynamicOptions(DynamicOptions source)
public String[] getOpTypes()
public void setOpTypes(String[] OpTypes)
OpTypes
- DML and DDL options to be synced. Valid values: `Insert` (INSERT), `Update` (UPDATE), `Delete` (DELETE), `DDL` (structure sync), `PartialDDL` (custom option, which is used together with `DdlOptions`). This parameter is required, and its value will overwrite the previous value. Note: This field may return null, indicating that no valid values can be obtained.public DdlOption[] getDdlOptions()
public void setDdlOptions(DdlOption[] DdlOptions)
DdlOptions
- DDL options to be synced. This parameter is required when `OpTypes` is `PartialDDL`, and its value will overwrite the previous value. Note: This field may return null, indicating that no valid values can be obtained.public String getConflictHandleType()
public void setConflictHandleType(String ConflictHandleType)
ConflictHandleType
- Conflict resolution method. Valid values: `ReportError` (Report error), `Ignore` (Ignore), `Cover` (Overwrite), `ConditionCover` (Conditionally overwrite). Currently, this parameter cannot be modified if the target of the link is Kafka. Note: This field may return null, indicating that no valid values can be obtained.public ConflictHandleOption getConflictHandleOption()
public void setConflictHandleOption(ConflictHandleOption ConflictHandleOption)
ConflictHandleOption
- Detailed options of the conflict resolution method, such as the conditionally overwritten rows and condition operations for the “conditionally overwrite” method. The internal field of this parameter cannot be modified separately. If this parameter needs to be updated, update it fully. Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.