public static final class RebootInstancesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RebootInstancesRequest.Builder |
batchOptimization(String batchOptimization)
The batch operation mode.
|
RebootInstancesRequest |
build() |
RebootInstancesRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform a dry run.
|
RebootInstancesRequest.Builder |
forceReboot(Boolean forceReboot)
Specifies whether to forcefully restart the instance.
|
RebootInstancesRequest.Builder |
instanceId(List<String> instanceId)
The IDs of the instances.
|
RebootInstancesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
RebootInstancesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
RebootInstancesRequest.Builder |
regionId(String regionId)
The region ID of the instance.
|
RebootInstancesRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
RebootInstancesRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
RebootInstancesRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
public RebootInstancesRequest.Builder sourceRegionId(String sourceRegionId)
public RebootInstancesRequest.Builder batchOptimization(String batchOptimization)
* AllTogether: In this mode, if all instances are restarted, a success message is returned. If an instance fails the verification, all instances fail to restart and an error message is returned. * SuccessFirst: In this mode, each instance is restarted separately. The response contains the operation results for each instance. Default value: AllTogether.
public RebootInstancesRequest.Builder dryRun(Boolean dryRun)
* true: performs a dry run. The system checks the required parameters, request syntax, and instance status. If the request fails the dry run, an error message is returned. If the request passes the dry run, `DRYRUN.SUCCESS` is returned. > If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned regardless of whether the request passes the dry run. * false: performs a dry run and sends the request. If the request passes the dry run, the operation is performed. Default value: false.
public RebootInstancesRequest.Builder forceReboot(Boolean forceReboot)
* true: forcefully restarts the instance. This operation is equivalent to the power-off operation in common scenarios. Cache data that is not written to storage devices on the instance will be lost. * false: normally restarts the instance. Default value: false.
public RebootInstancesRequest.Builder instanceId(List<String> instanceId)
public RebootInstancesRequest.Builder ownerAccount(String ownerAccount)
public RebootInstancesRequest.Builder ownerId(Long ownerId)
public RebootInstancesRequest.Builder regionId(String regionId)
public RebootInstancesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public RebootInstancesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public RebootInstancesRequest build()
Copyright © 2023. All rights reserved.