public class StopInstancesRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| StopInstancesRequest() | 
| StopInstancesRequest(StopInstancesRequest 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 | 
|---|---|
| Boolean | getForceStop()Deprecated.   | 
| String[] | getInstanceIds()Get 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。 | 
| String | getStoppedMode()Get 按量计费实例关机收费模式。
取值范围: KEEP_CHARGING:关机继续收费STOP_CHARGING:关机停止收费 默认取值:KEEP_CHARGING。 该参数只针对部分按量计费实例生效,详情参考[按量计费实例关机不收费说明](https://cloud.tencent.com/document/product/213/19918) | 
| String | getStopType()Get 实例的关闭模式。取值范围: SOFT_FIRST:表示在正常关闭失败后进行强制关闭HARD:直接强制关闭SOFT:仅软关机默认取值:SOFT。 | 
| void | setForceStop(Boolean ForceStop)Deprecated.   | 
| void | setInstanceIds(String[] InstanceIds)Set 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。 | 
| void | setStoppedMode(String StoppedMode)Set 按量计费实例关机收费模式。
取值范围: KEEP_CHARGING:关机继续收费STOP_CHARGING:关机停止收费 默认取值:KEEP_CHARGING。 该参数只针对部分按量计费实例生效,详情参考[按量计费实例关机不收费说明](https://cloud.tencent.com/document/product/213/19918) | 
| void | setStopType(String StopType)Set 实例的关闭模式。取值范围: SOFT_FIRST:表示在正常关闭失败后进行强制关闭HARD:直接强制关闭SOFT:仅软关机默认取值:SOFT。 | 
| 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 StopInstancesRequest()
public StopInstancesRequest(StopInstancesRequest source)
public String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds - 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。@Deprecated public Boolean getForceStop()
@Deprecated public void setForceStop(Boolean ForceStop)
ForceStop - 本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常关闭失败后选择强制关闭实例。取值范围:public String getStopType()
public void setStopType(String StopType)
StopType - 实例的关闭模式。取值范围:public String getStoppedMode()
public void setStoppedMode(String StoppedMode)
StoppedMode - 按量计费实例关机收费模式。
取值范围:Copyright © 2025. All rights reserved.