public static final class CreateDiskRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateDiskRequest.Builder |
advancedFeatures(String advancedFeatures)
This parameter is not publicly available.
|
CreateDiskRequest.Builder |
arn(List<CreateDiskRequest.Arn> arn)
This parameter is not publicly available.
|
CreateDiskRequest |
build() |
CreateDiskRequest.Builder |
burstingEnabled(Boolean burstingEnabled)
Specifies whether to enable the performance burst feature.
|
CreateDiskRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateDiskRequest.Builder |
description(String description)
The description of the disk.
|
CreateDiskRequest.Builder |
diskCategory(String diskCategory)
The category of the data disk.
|
CreateDiskRequest.Builder |
diskName(String diskName)
The name of the disk.
|
CreateDiskRequest.Builder |
encryptAlgorithm(String encryptAlgorithm)
This parameter is not publicly available.
|
CreateDiskRequest.Builder |
encrypted(Boolean encrypted)
Specifies whether to encrypt the disk.
|
CreateDiskRequest.Builder |
instanceId(String instanceId)
The ID of the subscription instance to which to attach the subscription disk.
|
CreateDiskRequest.Builder |
KMSKeyId(String KMSKeyId)
The ID of the Key Management Service (KMS) key that is used for the disk.
|
CreateDiskRequest.Builder |
multiAttach(String multiAttach)
Specifies whether to enable the multi-attach feature for the disk.
|
CreateDiskRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateDiskRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateDiskRequest.Builder |
performanceLevel(String performanceLevel)
The performance level of the disk if the disk is an ESSD.
|
CreateDiskRequest.Builder |
provisionedIops(Long provisionedIops)
The provisioned read/write IOPS of the ESSD AutoPL disk.
|
CreateDiskRequest.Builder |
regionId(String regionId)
The ID of the region in which to create the disk.
|
CreateDiskRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which to add the disk.
|
CreateDiskRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateDiskRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateDiskRequest.Builder |
size(Integer size)
The size of the disk.
|
CreateDiskRequest.Builder |
snapshotId(String snapshotId)
The ID of the snapshot to use to create the disk.
|
CreateDiskRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
CreateDiskRequest.Builder |
storageClusterId(String storageClusterId)
The ID of the dedicated block storage cluster in which to create the disk.
|
CreateDiskRequest.Builder |
storageSetId(String storageSetId)
The ID of the storage set.
|
CreateDiskRequest.Builder |
storageSetPartitionNumber(Integer storageSetPartitionNumber)
The number of partitions in the storage set.
|
CreateDiskRequest.Builder |
tag(List<CreateDiskRequest.Tag> tag)
The tags to add to the disk.
|
CreateDiskRequest.Builder |
zoneId(String zoneId)
The ID of the zone in which to create the pay-as-you-go disk.
|
public CreateDiskRequest.Builder sourceRegionId(String sourceRegionId)
public CreateDiskRequest.Builder advancedFeatures(String advancedFeatures)
public CreateDiskRequest.Builder arn(List<CreateDiskRequest.Arn> arn)
public CreateDiskRequest.Builder burstingEnabled(Boolean burstingEnabled)
* true * false > This parameter is available only when DiskCategory is set to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~).
public CreateDiskRequest.Builder clientToken(String clientToken)
public CreateDiskRequest.Builder description(String description)
This parameter is left empty by default.
public CreateDiskRequest.Builder diskCategory(String diskCategory)
* cloud: basic disk * cloud_efficiency: ultra disk * cloud_ssd: standard SSD * cloud_essd: ESSD * cloud_auto: ESSD AutoPL disk * cloud_essd_entry: ESSD Entry disk * elastic_ephemeral_disk_standard: standard elastic ephemeral disk * elastic_ephemeral_disk_premium: premium elastic ephemeral disk Default value: cloud.
public CreateDiskRequest.Builder diskName(String diskName)
This parameter is left empty by default.
public CreateDiskRequest.Builder encryptAlgorithm(String encryptAlgorithm)
public CreateDiskRequest.Builder encrypted(Boolean encrypted)
* true * false Default value: false.
public CreateDiskRequest.Builder instanceId(String instanceId)
* If you specify an instance ID, the following parameters are ignored: ResourceGroupId, Tag.N.Key, Tag.N.Value, ClientToken, and KMSKeyId. * You cannot specify both ZoneId and InstanceId in a request. This parameter is empty by default, which indicates that a pay-as-you-go disk is created in the region and zone specified by RegionId and ZoneId.
public CreateDiskRequest.Builder KMSKeyId(String KMSKeyId)
public CreateDiskRequest.Builder multiAttach(String multiAttach)
* Disabled * Enabled Set the value to `Enabled` only for ESSDs. Default value: Disabled. > Disks for which the multi-attach feature is enabled support only the pay-as-you-go billing method. When `MultiAttach` is set to Enabled, you cannot specify `InstanceId`. You can call the [AttachDisk](~~25515~~) operation to attach disks to instances after the disks are created. Disks for which the multi-attach feature is enabled can be attached only as data disks.
public CreateDiskRequest.Builder ownerAccount(String ownerAccount)
public CreateDiskRequest.Builder ownerId(Long ownerId)
public CreateDiskRequest.Builder performanceLevel(String performanceLevel)
* PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. Default value: PL1. For information about ESSD performance levels, see [ESSDs](~~122389~~).
public CreateDiskRequest.Builder provisionedIops(Long provisionedIops)
Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}. > This parameter is available only when DiskCategory is set to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~).
public CreateDiskRequest.Builder regionId(String regionId)
public CreateDiskRequest.Builder resourceGroupId(String resourceGroupId)
public CreateDiskRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateDiskRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateDiskRequest.Builder size(Integer size)
* Valid values when DiskCategory is set to cloud: 5 to 2000. * Valid values when DiskCategory is set to cloud_efficiency: 20 to 32768. * Valid values when DiskCategory is set to cloud_ssd: 20 to 32768. * Valid values when DiskCategory is set to cloud_essd: vary based on the `PerformanceLevel` value. * Valid values when PerformanceLevel is set to PL0: 1 to 65536. * Valid values when PerformanceLevel is set to PL1: 20 to 65536. * Valid values when PerformanceLevel is set to PL2: 461 to 65536. * Valid values when PerformanceLevel is set to PL3: 1261 to 65536. * Valid values when DiskCategory is set to cloud_auto: 1 to 65536. * Valid values when DiskCategory is set to cloud_essd_entry: 10 to 32768. * Valid values when DiskCategory is set to elastic_ephemeral_disk_standard: 64 to 8192. * Valid values when DiskCategory is set to elastic_ephemeral_disk_premium: 64 to 8192. If `SnapshotId` is specified, the following limits apply to `SnapshotId` and `Size`: * If the size of the snapshot specified by `SnapshotId` is larger than the value of `Size`, the size of the created disk is equal to the size of the snapshot. * If the size of the snapshot specified by `SnapshotId` is smaller than the value of `Size`, the size of the created disk is equal to the value of `Size`.
public CreateDiskRequest.Builder snapshotId(String snapshotId)
The following limits apply to `SnapshotId` and `Size`: * If the size of the snapshot specified by `SnapshotId` is larger than the value of `Size`, the size of the created disk is equal to the specified snapshot size. * If the size of the snapshot specified by `SnapshotId` is smaller than the value of `Size`, the size of the created disk is equal to the value of `Size`. * You cannot create elastic ephemeral disks from snapshots.
public CreateDiskRequest.Builder storageClusterId(String storageClusterId)
> You can specify the storage set-related parameters (`StorageSetId` and `StorageSetPartitionNumber`) or the dedicated block storage cluster-related parameter (`StorageClusterId`), but not both. If you specify a storage set-related parameter and a dedicated block storage cluster-related parameter in a request, the request fails.
public CreateDiskRequest.Builder storageSetId(String storageSetId)
> You cannot specify storage set-related parameters (`StorageSetId` and `StorageSetPartitionNumber`) and the dedicated block storage cluster-related parameter (`StorageClusterId`) at the same time. Otherwise, the operation cannot be called.
public CreateDiskRequest.Builder storageSetPartitionNumber(Integer storageSetPartitionNumber)
Default value: 2.
public CreateDiskRequest.Builder tag(List<CreateDiskRequest.Tag> tag)
public CreateDiskRequest.Builder zoneId(String zoneId)
* If you do not specify InstanceId, you must specify ZoneId. * You cannot specify both ZoneId and InstanceId in a request.
public CreateDiskRequest build()
Copyright © 2024. All rights reserved.