public class DetachDiskRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
deleteWithInstance
Specifies whether to automatically release the system disk when the instance from which the system disk is to be detached is released.
|
String |
diskId
The ID of the disk to be detached.
|
String |
instanceId
The ID of the ECS instance from which the disk is to be detached.
|
String |
ownerAccount |
Long |
ownerId |
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
DetachDiskRequest() |
限定符和类型 | 方法和说明 |
---|---|
static DetachDiskRequest |
build(Map<String,?> map) |
Boolean |
getDeleteWithInstance() |
String |
getDiskId() |
String |
getInstanceId() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
DetachDiskRequest |
setDeleteWithInstance(Boolean deleteWithInstance) |
DetachDiskRequest |
setDiskId(String diskId) |
DetachDiskRequest |
setInstanceId(String instanceId) |
DetachDiskRequest |
setOwnerAccount(String ownerAccount) |
DetachDiskRequest |
setOwnerId(Long ownerId) |
DetachDiskRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
DetachDiskRequest |
setResourceOwnerId(Long resourceOwnerId) |
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to automatically release the system disk when the instance from which the system disk is to be detached is released. Valid values:
* true: The system disk is released when the instance is released.
* false: The system disk is not released when the instance is released. The system disk is retained as a pay-as-you-go data disk.
Default value: true.
Take note of the following items:
* This parameter cannot be set for disks for which the multi-attach feature is enabled.
* If a data disk is to be detached, the default value is `false`.
@NameInMap(value="DiskId") public String diskId
The ID of the disk to be detached.
@NameInMap(value="InstanceId") public String instanceId
The ID of the ECS instance from which the disk is to be detached.
@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 DetachDiskRequest build(Map<String,?> map) throws Exception
Exception
public DetachDiskRequest setDeleteWithInstance(Boolean deleteWithInstance)
public Boolean getDeleteWithInstance()
public DetachDiskRequest setDiskId(String diskId)
public String getDiskId()
public DetachDiskRequest setInstanceId(String instanceId)
public String getInstanceId()
public DetachDiskRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DetachDiskRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DetachDiskRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DetachDiskRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2023. All rights reserved.