public static final class DeleteInstancesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DeleteInstancesRequest |
build() |
DeleteInstancesRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
DeleteInstancesRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run without performing the actual request.
|
DeleteInstancesRequest.Builder |
force(Boolean force)
Specifies whether to forcefully release the instance that is in the **Running** (`Running`) state.
|
DeleteInstancesRequest.Builder |
instanceId(List<String> instanceId)
The IDs of instances.
|
DeleteInstancesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DeleteInstancesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DeleteInstancesRequest.Builder |
regionId(String regionId)
The region ID of the instance.
|
DeleteInstancesRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DeleteInstancesRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DeleteInstancesRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
DeleteInstancesRequest.Builder |
terminateSubscription(Boolean terminateSubscription)
Specifies whether to release an expired subscription instance.
|
public DeleteInstancesRequest.Builder sourceRegionId(String sourceRegionId)
public DeleteInstancesRequest.Builder clientToken(String clientToken)
public DeleteInstancesRequest.Builder dryRun(Boolean dryRun)
* true: performs only a dry run. The system checks whether your AccessKey pair is valid, whether RAM users are granted permissions, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DRYRUN.SUCCESS error code is returned. * false: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
public DeleteInstancesRequest.Builder force(Boolean force)
* true: forcefully releases the instance that is in the **Running** (`Running`) state. When the Force parameter is set to true, this operation is equivalent to a power-off operation. Temporary data in the memory and storage of the instance is erased and cannot be restored. * false: normally releases the instance. This value is valid only for instances that are in the **Stopped** (`Stopped`) state.
public DeleteInstancesRequest.Builder instanceId(List<String> instanceId)
public DeleteInstancesRequest.Builder ownerAccount(String ownerAccount)
public DeleteInstancesRequest.Builder ownerId(Long ownerId)
public DeleteInstancesRequest.Builder regionId(String regionId)
public DeleteInstancesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DeleteInstancesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DeleteInstancesRequest.Builder terminateSubscription(Boolean terminateSubscription)
Default value: false.
public DeleteInstancesRequest build()
Copyright © 2024. All rights reserved.