public class KillMySqlThreadsRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| KillMySqlThreadsRequest() | 
| KillMySqlThreadsRequest(KillMySqlThreadsRequest 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 | getInstanceId()Get 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。 | 
| String | getProduct()Get 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。 | 
| Boolean | getRecordHistory()Get 默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。 | 
| String | getSqlExecId()Get 执行ID,此参数用于Commit阶段。 | 
| String | getStage()Get kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。 | 
| Long[] | getThreads()Get 需要kill的sql会话ID列表,通过接口[查询实时线程列表](https://cloud.tencent.com/document/product/1130/57824)
此参数用于Prepare阶段。 | 
| void | setInstanceId(String InstanceId)Set 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。 | 
| void | setProduct(String Product)Set 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。 | 
| void | setRecordHistory(Boolean RecordHistory)Set 默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。 | 
| void | setSqlExecId(String SqlExecId)Set 执行ID,此参数用于Commit阶段。 | 
| void | setStage(String Stage)Set kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。 | 
| void | setThreads(Long[] Threads)Set 需要kill的sql会话ID列表,通过接口[查询实时线程列表](https://cloud.tencent.com/document/product/1130/57824)
此参数用于Prepare阶段。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic KillMySqlThreadsRequest()
public KillMySqlThreadsRequest(KillMySqlThreadsRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。public String getStage()
public void setStage(String Stage)
Stage - kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。public Long[] getThreads()
public void setThreads(Long[] Threads)
Threads - 需要kill的sql会话ID列表,通过接口[查询实时线程列表](https://cloud.tencent.com/document/product/1130/57824)
此参数用于Prepare阶段。public String getSqlExecId()
public void setSqlExecId(String SqlExecId)
SqlExecId - 执行ID,此参数用于Commit阶段。public String getProduct()
public void setProduct(String Product)
Product - 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。public Boolean getRecordHistory()
public void setRecordHistory(Boolean RecordHistory)
RecordHistory - 默认是true,会记录下kill的记录;该参数为true, 则在kill操作前校验目标会话是否存在,存在则继续kill,否则取消kill。为了加快kill速度,可设置为false。Copyright © 2025. All rights reserved.