public class StopInstancesRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
batchOptimization
The batch operation mode.
|
Boolean |
dryRun
Specifies whether to check the validity of the request without actually making the request.
|
Boolean |
forceStop
Specifies whether to forcibly stop the instance.
|
List<String> |
instanceId
The list of instance ID.
|
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:
* AllTogether: In this mode, if all instances are stopped, a success message is returned. If an instance fails the verification, all instances fail to stop and an error message is returned.
* SuccessFirst: In this mode, each instance is separately stopped. The response contains the operation results for each instance.
Default value: AllTogether.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to check the validity of the request without actually making the request. Valid values:
* true: The validity of the request is checked, but the request is not made. Check items include the request format, instance status, and whether the required parameters are specified. If the check fails, the corresponding error message is returned. If the check succeeds, `DRYRUN.SUCCESS` is returned.
> If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned regardless of whether the check succeeds.
* false: The validity of the request is checked, and the request is made if the check succeeds.
Default value: false.
@NameInMap(value="ForceStop") public Boolean forceStop
Specifies whether to forcibly stop the instance. Valid values:
* true: forcibly stops the instance. This operation is equivalent to the typical power-off operation. Cache data that is not written to storage in the instance will be lost.
* false: normally stops the instance.
Default value: false.
@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](~~25609~~) operation to query the most recent region list.
@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: economical mode. For information about how `StopCharging` takes effect, see the "Prerequisites" section in [Economical mode](~~63353~~).
* KeepCharging: standard mode. After the instances are stopped in standard mode, you continue to be charged for them.
Default value: If the prerequisites required for enabling the economical mode are met and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see "Enable the economical mode" in [Economical mode](~~63353#default~~). Otherwise, the default value is `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 © 2023. All rights reserved.