public class RebootInstanceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
dryRun
Specifies whether to perform a dry run.
|
Boolean |
forceStop
Specifies whether to forcibly stop the instance to restart it.
|
String |
instanceId
The ID of the instance.
|
String |
ownerAccount |
Long |
ownerId |
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
RebootInstanceRequest() |
限定符和类型 | 方法和说明 |
---|---|
static RebootInstanceRequest |
build(Map<String,?> map) |
Boolean |
getDryRun() |
Boolean |
getForceStop() |
String |
getInstanceId() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
RebootInstanceRequest |
setDryRun(Boolean dryRun) |
RebootInstanceRequest |
setForceStop(Boolean forceStop) |
RebootInstanceRequest |
setInstanceId(String instanceId) |
RebootInstanceRequest |
setOwnerAccount(String ownerAccount) |
RebootInstanceRequest |
setOwnerId(Long ownerId) |
RebootInstanceRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
RebootInstanceRequest |
setResourceOwnerId(Long resourceOwnerId) |
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform a dry run. Valid values:
* true: performs 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, an 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.
@NameInMap(value="ForceStop") public Boolean forceStop
Specifies whether to forcibly stop the instance to restart it. Valid values:
* true: stops the instance in a forceful manner. This operation is equivalent to the power-off operation in common scenarios. Cache data that is not written to storage in the instance will be lost.
* false: normally stops the instance. This is the default value.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static RebootInstanceRequest build(Map<String,?> map) throws Exception
Exception
public RebootInstanceRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public RebootInstanceRequest setForceStop(Boolean forceStop)
public Boolean getForceStop()
public RebootInstanceRequest setInstanceId(String instanceId)
public String getInstanceId()
public RebootInstanceRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public RebootInstanceRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public RebootInstanceRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public RebootInstanceRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2023. All rights reserved.