public static final class StartInstanceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
StartInstanceRequest |
build() |
StartInstanceRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request.
|
StartInstanceRequest.Builder |
initLocalDisk(Boolean initLocalDisk)
Specifies whether to restore the instance to its initial health state.
|
StartInstanceRequest.Builder |
instanceId(String instanceId)
The ID of the instance that you want to start.
|
StartInstanceRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
StartInstanceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
StartInstanceRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
StartInstanceRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
StartInstanceRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
public StartInstanceRequest.Builder sourceRegionId(String sourceRegionId)
public StartInstanceRequest.Builder dryRun(Boolean dryRun)
* true: performs only a dry run. The system checks the AccessKey pair, the permissions of the RAM user, and the required parameters. 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. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. Default value: false.
public StartInstanceRequest.Builder initLocalDisk(Boolean initLocalDisk)
* true: restores the instance to its initial health state on startup. After the instance is restored to its initial health state, data stored on the local disks of the instance is lost. * false: does not perform operations and keeps the instance in the current state. Default value: false.
public StartInstanceRequest.Builder instanceId(String instanceId)
public StartInstanceRequest.Builder ownerAccount(String ownerAccount)
public StartInstanceRequest.Builder ownerId(Long ownerId)
public StartInstanceRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public StartInstanceRequest.Builder resourceOwnerId(Long resourceOwnerId)
public StartInstanceRequest build()
Copyright © 2024. All rights reserved.