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 only a dry run, without performing the actual request.
|
RebootInstancesRequest.Builder |
forceReboot(Boolean forceReboot)
Specifies whether to forcefully restart the instance.
|
RebootInstancesRequest.Builder |
instanceId(List<String> instanceId)
The instance IDs.
|
RebootInstancesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
RebootInstancesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
RebootInstancesRequest.Builder |
regionId(String regionId)
The region ID.
|
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 be restarted and an error message is returned. * SuccessFirst: In this mode, each instance is restarted separately. The response contains the operation results of each instance. Default value: AllTogether.
public RebootInstancesRequest.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, 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 instance is restarted. Default value: false.
public RebootInstancesRequest.Builder forceReboot(Boolean forceReboot)
* true: forcefully restarts the instance. This operation is equivalent to the typical power-off operation. Cache data that is not written to storage devices on the instance is 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 © 2024. All rights reserved.