public static final class DeleteInstanceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DeleteInstanceRequest |
build() |
DeleteInstanceRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request.
|
DeleteInstanceRequest.Builder |
force(Boolean force)
Specifies whether to forcefully release the instance in the **Running** (`Running`) state.
|
DeleteInstanceRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
DeleteInstanceRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DeleteInstanceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DeleteInstanceRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DeleteInstanceRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DeleteInstanceRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
DeleteInstanceRequest.Builder |
terminateSubscription(Boolean terminateSubscription)
Specifies whether to release the expired subscription instance.
|
public DeleteInstanceRequest.Builder sourceRegionId(String sourceRegionId)
public DeleteInstanceRequest.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 unavailable 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 (default): performs a dry run and performs the actual request. If the request passes the dry run, the instance is released.
public DeleteInstanceRequest.Builder force(Boolean force)
* true: forcefully releases the instance in the **Running** (`Running`) state. This operation is equivalent to the power-off operation. Cache data that is not written to persistent storage will be lost. * false: normally releases the instance. This value take effects only if the instance is in the **Stopped** (`Stopped`) state. Default value: false.
public DeleteInstanceRequest.Builder instanceId(String instanceId)
public DeleteInstanceRequest.Builder ownerAccount(String ownerAccount)
public DeleteInstanceRequest.Builder ownerId(Long ownerId)
public DeleteInstanceRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DeleteInstanceRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DeleteInstanceRequest.Builder terminateSubscription(Boolean terminateSubscription)
* true * false Default value: false.
public DeleteInstanceRequest build()
Copyright © 2024. All rights reserved.