public class CreateSqlFilterRequest extends AbstractModel
| Constructor and Description |
|---|
CreateSqlFilterRequest() |
CreateSqlFilterRequest(CreateSqlFilterRequest 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 |
|---|---|
Long |
getDuration()
Get 限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。
|
String |
getFilterKey()
Get 关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。
|
String |
getInstanceId()
Get 实例ID。
|
Long |
getMaxConcurrency()
Get 最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。
|
String |
getProduct()
Get 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
String |
getSessionToken()
Get 通过VerifyUserAccount获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。
|
String |
getSqlType()
Get SQL类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。
|
void |
setDuration(Long Duration)
Set 限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。
|
void |
setFilterKey(String FilterKey)
Set 关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。
|
void |
setInstanceId(String InstanceId)
Set 实例ID。
|
void |
setMaxConcurrency(Long MaxConcurrency)
Set 最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。
|
void |
setProduct(String Product)
Set 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
void |
setSessionToken(String SessionToken)
Set 通过VerifyUserAccount获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。
|
void |
setSqlType(String SqlType)
Set SQL类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。
|
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 CreateSqlFilterRequest()
public CreateSqlFilterRequest(CreateSqlFilterRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - 实例ID。public String getSessionToken()
public void setSessionToken(String SessionToken)
SessionToken - 通过VerifyUserAccount获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。public String getSqlType()
public void setSqlType(String SqlType)
SqlType - SQL类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。public String getFilterKey()
public void setFilterKey(String FilterKey)
FilterKey - 关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。public Long getMaxConcurrency()
public void setMaxConcurrency(Long MaxConcurrency)
MaxConcurrency - 最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。public Long getDuration()
public void setDuration(Long Duration)
Duration - 限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。public String getProduct()
public void setProduct(String Product)
Product - 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。Copyright © 2022. All rights reserved.