public static final class ModifyDiskAttributeRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ModifyDiskAttributeRequest |
build() |
ModifyDiskAttributeRequest.Builder |
burstingEnabled(Boolean burstingEnabled)
Specifies whether to enable the performance burst feature for disk N.
|
ModifyDiskAttributeRequest.Builder |
deleteAutoSnapshot(Boolean deleteAutoSnapshot)
Specifies whether to delete the automatic snapshots of the disk when the disk is released.
|
ModifyDiskAttributeRequest.Builder |
deleteWithInstance(Boolean deleteWithInstance)
Specifies whether to release the disk together with the associated instance.
|
ModifyDiskAttributeRequest.Builder |
description(String description)
The description of the disk.
|
ModifyDiskAttributeRequest.Builder |
diskId(String diskId)
The ID of the disk.
|
ModifyDiskAttributeRequest.Builder |
diskIds(List<String> diskIds)
The IDs of the disks whose attributes you want to modify.
|
ModifyDiskAttributeRequest.Builder |
diskName(String diskName)
The name of the disk.
|
ModifyDiskAttributeRequest.Builder |
enableAutoSnapshot(Boolean enableAutoSnapshot)
Specifies whether to enable the automatic snapshot policy feature for the disk.
|
ModifyDiskAttributeRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ModifyDiskAttributeRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyDiskAttributeRequest.Builder |
regionId(String regionId)
The ID of the region.
|
ModifyDiskAttributeRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyDiskAttributeRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ModifyDiskAttributeRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
public ModifyDiskAttributeRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyDiskAttributeRequest.Builder burstingEnabled(Boolean burstingEnabled)
* true: enables the performance burst feature. * false: disables the performance burst feature.
public ModifyDiskAttributeRequest.Builder deleteAutoSnapshot(Boolean deleteAutoSnapshot)
public ModifyDiskAttributeRequest.Builder deleteWithInstance(Boolean deleteWithInstance)
If you set the `DeleteWithInstance` parameter to `false` in one of the following cases, an error is returned: * The disk is a local disk. * The disk is a basic disk and not removable. If the Portable attribute of a disk is set to false, the disk is not removable.
public ModifyDiskAttributeRequest.Builder description(String description)
public ModifyDiskAttributeRequest.Builder diskId(String diskId)
> You can specify the `DiskId` parameter or the `DiskIds.N` parameter, but you cannot specify both parameters at the same time.
public ModifyDiskAttributeRequest.Builder diskIds(List<String> diskIds)
> You can specify the `DiskId` parameter or the `DiskIds.N` parameter, but you cannot specify both parameters at the same time.
public ModifyDiskAttributeRequest.Builder diskName(String diskName)
public ModifyDiskAttributeRequest.Builder enableAutoSnapshot(Boolean enableAutoSnapshot)
* true: enables the automatic snapshot policy feature for the disk. * false: disables the automatic snapshot policy feature for the disk. By default, this parameter is left empty, which specifies that the current value remains unchanged. > : By default, the automatic snapshot policy feature is enabled for new disks. You need to only apply an automatic snapshot policy to a disk for the policy to take effect.
public ModifyDiskAttributeRequest.Builder ownerAccount(String ownerAccount)
public ModifyDiskAttributeRequest.Builder ownerId(Long ownerId)
public ModifyDiskAttributeRequest.Builder regionId(String regionId)
public ModifyDiskAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyDiskAttributeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyDiskAttributeRequest build()
Copyright © 2023. All rights reserved.