public static final class StopInstanceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
StopInstanceRequest |
build() |
StopInstanceRequest.Builder |
confirmStop(Boolean confirmStop)
This parameter will be removed in the future and is retained only to ensure compatibility.
|
StopInstanceRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request.
|
StopInstanceRequest.Builder |
forceStop(Boolean forceStop)
Specifies whether to forcibly stop the instance.
|
StopInstanceRequest.Builder |
hibernate(Boolean hibernate)
> This parameter is in invitational preview and is not publicly available.
|
StopInstanceRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
StopInstanceRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
StopInstanceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
StopInstanceRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
StopInstanceRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
StopInstanceRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
StopInstanceRequest.Builder |
stoppedMode(String stoppedMode)
The stop mode of the pay-as-you-go instance.
|
public StopInstanceRequest.Builder sourceRegionId(String sourceRegionId)
public StopInstanceRequest.Builder confirmStop(Boolean confirmStop)
public StopInstanceRequest.Builder dryRun(Boolean dryRun)
* true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, service limits, and available ECS resources. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * false: performs a dry run and performs the actual request. Default value: false.
public StopInstanceRequest.Builder forceStop(Boolean forceStop)
* true * false Default value: false.
public StopInstanceRequest.Builder hibernate(Boolean hibernate)
public StopInstanceRequest.Builder instanceId(String instanceId)
public StopInstanceRequest.Builder ownerAccount(String ownerAccount)
public StopInstanceRequest.Builder ownerId(Long ownerId)
public StopInstanceRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public StopInstanceRequest.Builder resourceOwnerId(Long resourceOwnerId)
public StopInstanceRequest.Builder stoppedMode(String stoppedMode)
* StopCharging: economical mode. For information about how `StopCharging` takes effect, see the "Conditions for enabling economical mode" section in [Economical mode](~~63353~~). * KeepCharging: standard mode. You continue to be charged for instances that are stopped in standard mode. Default value: If the conditions for enabling the economical mode are met and you have enabled this mode in the ECS console, the default value is [StopCharging](~~63353#default~~). For more information, see the "Enable economical mode" section in `Economical mode`. Otherwise, the default value is `KeepCharging`.
public StopInstanceRequest build()
Copyright © 2024. All rights reserved.