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 a dry run.
|
StopInstanceRequest.Builder |
forceStop(Boolean forceStop)
Specifies whether to forcefully stop the instance.
|
StopInstanceRequest.Builder |
hibernate(Boolean hibernate)
> This parameter is in invitational preview and is not available for public use.
|
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 a dry run. The system checks the required parameters, the request format, 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 the request is made if the request passes the dry run. Default value: false.
public StopInstanceRequest.Builder forceStop(Boolean forceStop)
* true: forcefully stops the instance. * false: normally stops the instance. 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 "Prerequisites" section in [Economical mode](~~63353~~). * KeepCharging: standard mode. After the instance is stopped in standard mode, you continue to be charged for it. Default value: If the prerequisites required for enabling economical mode are met and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see the "Enable economical mode" section in [Economical mode](~~63353#default~~). Otherwise, the default value is `KeepCharging`.
public StopInstanceRequest build()
Copyright © 2023. All rights reserved.