public static final class DetachDiskRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DetachDiskRequest |
build() |
DetachDiskRequest.Builder |
deleteWithInstance(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.
|
DetachDiskRequest.Builder |
diskId(String diskId)
The ID of the disk that you want to detach.
|
DetachDiskRequest.Builder |
instanceId(String instanceId)
The ID of the ECS instance from which you want to detach the disk.
|
DetachDiskRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DetachDiskRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DetachDiskRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DetachDiskRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DetachDiskRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
public DetachDiskRequest.Builder sourceRegionId(String sourceRegionId)
public DetachDiskRequest.Builder deleteWithInstance(Boolean deleteWithInstance)
* true: releases the disk when the instance is released. * false: does not release the disk when the instance is released. The disk is retained as a pay-as-you-go data disk. Default value: true. Take note of the following items: * You cannot specify this parameter for disks for which the multi-attach feature is enabled. * If a data disk is to be detached, the default value is `false`. * If you want to detach an `elastic ephemeral disk`, you must set `DeleteWithInstance` to `true`.
public DetachDiskRequest.Builder diskId(String diskId)
public DetachDiskRequest.Builder instanceId(String instanceId)
public DetachDiskRequest.Builder ownerAccount(String ownerAccount)
public DetachDiskRequest.Builder ownerId(Long ownerId)
public DetachDiskRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DetachDiskRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DetachDiskRequest build()
Copyright © 2024. All rights reserved.