public static final class ResizeDiskRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ResizeDiskRequest |
build() |
ResizeDiskRequest.Builder |
clientToken(String clientToken)
The ID of the order.
|
ResizeDiskRequest.Builder |
diskId(String diskId)
The ID of the disk.
|
ResizeDiskRequest.Builder |
newSize(Integer newSize)
The new disk capacity.
|
ResizeDiskRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ResizeDiskRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ResizeDiskRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ResizeDiskRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ResizeDiskRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
ResizeDiskRequest.Builder |
type(String type)
The method that you want to use to resize the disk.
|
public ResizeDiskRequest.Builder sourceRegionId(String sourceRegionId)
public ResizeDiskRequest.Builder clientToken(String clientToken)
> This parameter is returned only when you resize subscription disks.
public ResizeDiskRequest.Builder diskId(String diskId)
public ResizeDiskRequest.Builder newSize(Integer newSize)
* System disk: * Basic disk (cloud): 20 to 500. * ESSD (cloud_essd): Valid values vary based on the performance level of the ESSD. To query the performance level of an ESSD, call the DescribeDisks operation to query disk information and check the PerformanceLevel value in the response. * PL0 ESSD: 1 to 2048. * PL1 ESSD: 20 to 2048. * PL2 ESSD: 461 to 2048. * PL3 ESSD: 1261 to 2048. * ESSD AutoPL disk (cloud_auto): 1 to 2048. * Other disk categories: 20 to 2048. * Data disk: * Ultra disk (cloud_efficiency): 20 to 32768. * Standard SSD (cloud_ssd): 20 to 32768. * ESSD (cloud_essd): Valid values vary based on the performance level of the ESSD.`` To query the performance level of an ESSD, call the [DescribeDisks](~~25514~~) operation to query disk information and check the `PerformanceLevel` value in the response. * PL0 ESSD: 1 to 32768. * PL1 ESSD: 20 to 32768. * PL2 ESSD: 461 to 32768. * PL3 ESSD: 1261 to 32768. * Basic disk (cloud): 5 to 2000. * ESSD AutoPL disk (cloud_auto): 1 to 32768. * Standard elastic ephemeral disk (elastic_ephemeral_disk_standard): 64 to 8192. * Premium elastic ephemeral disk (elastic_ephemeral_disk_premium): 64 to 8192. > The new disk capacity must be larger than the original disk capacity.
public ResizeDiskRequest.Builder ownerAccount(String ownerAccount)
public ResizeDiskRequest.Builder ownerId(Long ownerId)
public ResizeDiskRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ResizeDiskRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ResizeDiskRequest.Builder type(String type)
* offline (default): resizes the disk offline. After you resize a disk offline, you must restart the associated instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the resizing operation to take effect. For information about how to restart an ECS instance in the ECS console, see [Restart an instance](~~25440~~). * online: resizes the disk online. After you resize a disk online, the resizing operation immediately takes effect. You do not need to restart the associated instance. You can resize ultra disks, standard SSDs, Enterprise SSDs (ESSDs), and elastic ephemeral disks online.
public ResizeDiskRequest build()
Copyright © 2024. All rights reserved.