Class TopicRule
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.dts.v20211206.models.TopicRule
-
public class TopicRule extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDbMatchMode()Get 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’StringgetDbName()Get 库名,仅“自定义topic”时,DbMatchMode=Regular生效StringgetPartitionType()Get topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)StringgetTableMatchMode()Get 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’StringgetTableName()Get 表名,仅“自定义topic”时,TableMatchMode=Regular生效StringgetTopicName()Get topic名voidsetDbMatchMode(String DbMatchMode)Set 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’voidsetDbName(String DbName)Set 库名,仅“自定义topic”时,DbMatchMode=Regular生效voidsetPartitionType(String PartitionType)Set topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)voidsetTableMatchMode(String TableMatchMode)Set 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’voidsetTableName(String TableName)Set 表名,仅“自定义topic”时,TableMatchMode=Regular生效voidsetTopicName(String TopicName)Set topic名voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
TopicRule
public TopicRule()
-
TopicRule
public TopicRule(TopicRule 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.
-
-
Method Detail
-
getTopicName
public String getTopicName()
Get topic名- Returns:
- TopicName topic名
-
setTopicName
public void setTopicName(String TopicName)
Set topic名- Parameters:
TopicName- topic名
-
getPartitionType
public String getPartitionType()
Get topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)- Returns:
- PartitionType topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
-
setPartitionType
public void setPartitionType(String PartitionType)
Set topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)- Parameters:
PartitionType- topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
-
getDbMatchMode
public String getDbMatchMode()
Get 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’- Returns:
- DbMatchMode 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
-
setDbMatchMode
public void setDbMatchMode(String DbMatchMode)
Set 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’- Parameters:
DbMatchMode- 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
-
getDbName
public String getDbName()
Get 库名,仅“自定义topic”时,DbMatchMode=Regular生效- Returns:
- DbName 库名,仅“自定义topic”时,DbMatchMode=Regular生效
-
setDbName
public void setDbName(String DbName)
Set 库名,仅“自定义topic”时,DbMatchMode=Regular生效- Parameters:
DbName- 库名,仅“自定义topic”时,DbMatchMode=Regular生效
-
getTableMatchMode
public String getTableMatchMode()
Get 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’- Returns:
- TableMatchMode 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
-
setTableMatchMode
public void setTableMatchMode(String TableMatchMode)
Set 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’- Parameters:
TableMatchMode- 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
-
getTableName
public String getTableName()
Get 表名,仅“自定义topic”时,TableMatchMode=Regular生效- Returns:
- TableName 表名,仅“自定义topic”时,TableMatchMode=Regular生效
-
setTableName
public void setTableName(String TableName)
Set 表名,仅“自定义topic”时,TableMatchMode=Regular生效- Parameters:
TableName- 表名,仅“自定义topic”时,TableMatchMode=Regular生效
-
-