public class DetachDiskRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
deleteWithInstance
Specifies whether to release the system disk or data disk when the instance from which you want to detach the disk is released.
|
String |
diskId
The ID of the disk that you want to detach.
|
String |
instanceId
The ID of the ECS instance from which you want to detach the disk.
|
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 release the system disk or data disk when the instance from which you want to detach the disk is released. Valid values:
Default value: true.
Take note of the following items:
false
.elastic ephemeral disk
, you must set DeleteWithInstance
to true
.false
@NameInMap(value="DiskId") public String diskId
The ID of the disk that you want to detach.
This parameter is required.
example:d-bp67acfmxazb4p****
@NameInMap(value="InstanceId") public String instanceId
The ID of the ECS instance from which you want to detach the disk.
This parameter is required.
example:i-bp67acfmxazb4p****
@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 © 2024. All rights reserved.