public class StopInstancesRequest extends AbstractModel
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()
Get 本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常关闭失败后选择强制关闭实例。取值范围:
TRUE:表示在正常关闭失败后进行强制关闭 FALSE:表示在正常关闭失败后不进行强制关闭 默认取值:FALSE。 |
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)
Set 本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常关闭失败后选择强制关闭实例。取值范围:
TRUE:表示在正常关闭失败后进行强制关闭 FALSE:表示在正常关闭失败后不进行强制关闭 默认取值:FALSE。 |
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public 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。public Boolean getForceStop()
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 © 2022. All rights reserved.