public static final class RebootInstanceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RebootInstanceRequest |
build() |
RebootInstanceRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run.
|
RebootInstanceRequest.Builder |
forceStop(Boolean forceStop)
Specifies whether to forcefully stop the instance before you restart the instance.
|
RebootInstanceRequest.Builder |
instanceId(String instanceId)
The instance ID.
|
RebootInstanceRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
RebootInstanceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
RebootInstanceRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
RebootInstanceRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
RebootInstanceRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
public RebootInstanceRequest.Builder sourceRegionId(String sourceRegionId)
public RebootInstanceRequest.Builder dryRun(Boolean dryRun)
* true: performs only a dry run. The system checks the required parameters, the request format, service limits, and available ECS resources. If the request fails the dry run, the corresponding error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * false: performs a dry run and sends the request. If the request passes the dry run, the instance is restarted. Default value: false.
public RebootInstanceRequest.Builder forceStop(Boolean forceStop)
* true: stops the instance in a forceful manner. This operation is equivalent to the power-off operation. Cache data that is not written to storage devices on the instance is lost. * false (default): normally stops the instance.
public RebootInstanceRequest.Builder instanceId(String instanceId)
public RebootInstanceRequest.Builder ownerAccount(String ownerAccount)
public RebootInstanceRequest.Builder ownerId(Long ownerId)
public RebootInstanceRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public RebootInstanceRequest.Builder resourceOwnerId(Long resourceOwnerId)
public RebootInstanceRequest build()
Copyright © 2024. All rights reserved.