public static final class ModifyDiskSpecRequest.Builder extends Object
public ModifyDiskSpecRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyDiskSpecRequest.Builder diskCategory(String diskCategory)
* cloud_essd: enhanced SSD (ESSD) * cloud_auto: ESSD AutoPL disk * cloud_ssd: standard SSD * cloud_efficiency: ultra disk This parameter is empty by default, which indicates that the disk category is not changed. > * The preceding values are listed in descending order of disk performance. Subscription disks cannot be downgraded.
public ModifyDiskSpecRequest.Builder diskId(String diskId)
public ModifyDiskSpecRequest.Builder dryRun(Boolean dryRun)
* true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, service limits, and insufficient ECS resources. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * false: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. Default value: false.
public ModifyDiskSpecRequest.Builder ownerAccount(String ownerAccount)
public ModifyDiskSpecRequest.Builder ownerId(Long ownerId)
public ModifyDiskSpecRequest.Builder performanceControlOptions(ModifyDiskSpecRequest.PerformanceControlOptions performanceControlOptions)
public ModifyDiskSpecRequest.Builder performanceLevel(String performanceLevel)
* PL0: An ESSD can deliver up to 10,000 random read/write IOPS. * PL1: An ESSD can deliver up to 50,000 random read/write IOPS. * PL2: An ESSD can deliver up to 100,000 random read/write IOPS. * PL3: An ESSD delivers up to 1,000,000 random read/write IOPS. Default value: PL1.
public ModifyDiskSpecRequest.Builder provisionedIops(Long provisionedIops)
Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}. > This parameter is available only if you set DiskCategory to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~) and [Modify the performance configurations of an ESSD AutoPL disk](~~413275~~).
public ModifyDiskSpecRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyDiskSpecRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyDiskSpecRequest build()
Copyright © 2024. All rights reserved.