public class UpdateMonitorSwitchRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| UpdateMonitorSwitchRequest() | 
| UpdateMonitorSwitchRequest(UpdateMonitorSwitchRequest 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 服务产品类型,仅支持 "dbbrain-mysql" - 自建MySQL。 | 
| String | getSwitch()Get 停止或重连Agent实例,支持值包括:"on" - 重连实例, "off" - 停止实例。 | 
| void | setInstanceId(String InstanceId)Set 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。 | 
| void | setProduct(String Product)Set 服务产品类型,仅支持 "dbbrain-mysql" - 自建MySQL。 | 
| void | setSwitch(String Switch)Set 停止或重连Agent实例,支持值包括:"on" - 重连实例, "off" - 停止实例。 | 
| 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 UpdateMonitorSwitchRequest()
public UpdateMonitorSwitchRequest(UpdateMonitorSwitchRequest source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - 停止或重连Agent实例,支持值包括:"on" - 重连实例, "off" - 停止实例。public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。public String getProduct()
public void setProduct(String Product)
Product - 服务产品类型,仅支持 "dbbrain-mysql" - 自建MySQL。Copyright © 2025. All rights reserved.