public class StopInstancesRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
batchOptimization
The batch operation mode.
|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
Boolean |
forceStop
Specifies whether to forcefully stop instances.
|
List<String> |
instanceId
The IDs of instances.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
stoppedMode
The stop mode of the pay-as-you-go instance.
|
构造器和说明 |
---|
StopInstancesRequest() |
限定符和类型 | 方法和说明 |
---|---|
static StopInstancesRequest |
build(Map<String,?> map) |
String |
getBatchOptimization() |
Boolean |
getDryRun() |
Boolean |
getForceStop() |
List<String> |
getInstanceId() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
String |
getRegionId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
String |
getStoppedMode() |
StopInstancesRequest |
setBatchOptimization(String batchOptimization) |
StopInstancesRequest |
setDryRun(Boolean dryRun) |
StopInstancesRequest |
setForceStop(Boolean forceStop) |
StopInstancesRequest |
setInstanceId(List<String> instanceId) |
StopInstancesRequest |
setOwnerAccount(String ownerAccount) |
StopInstancesRequest |
setOwnerId(Long ownerId) |
StopInstancesRequest |
setRegionId(String regionId) |
StopInstancesRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
StopInstancesRequest |
setResourceOwnerId(Long resourceOwnerId) |
StopInstancesRequest |
setStoppedMode(String stoppedMode) |
@NameInMap(value="BatchOptimization") public String batchOptimization
The batch operation mode. Valid values:
Default value: AllTogether.
example:AllTogether
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
DRYRUN.SUCCESS
is returned.If you set
BatchOptimization
toSuccessFirst
andDryRun
to true, onlyDRYRUN.SUCCESS
is returned, regardless of whether the request passes the dry run.
Default value: false.
example:false
@NameInMap(value="ForceStop") public Boolean forceStop
Specifies whether to forcefully stop instances. Valid values:
Default value: false.
example:false
@NameInMap(value="InstanceId") public List<String> instanceId
The IDs of instances.
This parameter is required.
example:i-bp67acfmxazb4p****
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StoppedMode") public String stoppedMode
The stop mode of the pay-as-you-go instance. Valid values:
StopCharging
takes effect, see the "Prerequisites" section in Economical mode.Default value: If the prerequisites required for enabling economical mode are met and you have enabled the mode in the ECS console, the default value is StopCharging. For more information, see the "Enable economical mode" section in Economical mode
. Otherwise, the default value is KeepCharging
.
KeepCharging
public static StopInstancesRequest build(Map<String,?> map) throws Exception
Exception
public StopInstancesRequest setBatchOptimization(String batchOptimization)
public String getBatchOptimization()
public StopInstancesRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public StopInstancesRequest setForceStop(Boolean forceStop)
public Boolean getForceStop()
public StopInstancesRequest setInstanceId(List<String> instanceId)
public StopInstancesRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public StopInstancesRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public StopInstancesRequest setRegionId(String regionId)
public String getRegionId()
public StopInstancesRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public StopInstancesRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public StopInstancesRequest setStoppedMode(String stoppedMode)
public String getStoppedMode()
Copyright © 2024. All rights reserved.