public static final class CreateDiskRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateDiskRequest.Builder |
advancedFeatures(String advancedFeatures)
This parameter is unavailable.
|
CreateDiskRequest.Builder |
arn(List<CreateDiskRequest.Arn> arn)
该参数暂未开放使用。
|
CreateDiskRequest |
build() |
CreateDiskRequest.Builder |
burstingEnabled(Boolean burstingEnabled)
This parameter is unavailable.
|
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 unavailable.
|
CreateDiskRequest.Builder |
encrypted(Boolean encrypted)
Specifies whether to encrypt the disk.
|
CreateDiskRequest.Builder |
instanceId(String instanceId)
The ID of the instance to which the created subscription disk is automatically attached.
|
CreateDiskRequest.Builder |
KMSKeyId(String KMSKeyId)
The ID of the Key Management Service (KMS) key used by 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 ESSD.
|
CreateDiskRequest.Builder |
provisionedIops(Long provisionedIops)
This parameter is unavailable.
|
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 assign 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 used to create the disk.
|
CreateDiskRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
CreateDiskRequest.Builder |
storageClusterId(String storageClusterId)
The ID of the dedicated block storage cluster.
|
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)
云盘的标签信息列表。
|
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)
public CreateDiskRequest.Builder clientToken(String clientToken)
public CreateDiskRequest.Builder description(String description)
This parameter is empty by default.
public CreateDiskRequest.Builder diskCategory(String diskCategory)
* cloud: basic disk * cloud_efficiency: ultra disk * cloud_ssd: standard SSD * cloud_essd: ESSD Default value: cloud.
public CreateDiskRequest.Builder diskName(String diskName)
This parameter is empty by default.
public CreateDiskRequest.Builder encryptAlgorithm(String encryptAlgorithm)
public CreateDiskRequest.Builder encrypted(Boolean encrypted)
* true: encrypts the disk. * false: does not encrypt the disk. Default value: false.
public CreateDiskRequest.Builder instanceId(String instanceId)
* After you specify the instance ID, the specified ResourceGroupId, Tag.N.Key, Tag.N.Value, ClientToken, and KMSKeyId parameters are ignored. * You cannot specify ZoneId and InstanceId at the same time. This parameter is empty by default. This indicates that a pay-as-you-go disk is created. The RegionId and ZoneId parameters specify where the disk resides.
public CreateDiskRequest.Builder KMSKeyId(String KMSKeyId)
public CreateDiskRequest.Builder multiAttach(String multiAttach)
* Disabled: disables the multi-attach feature. * Enabled: enables the multi-attach feature. 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 the `MultiAttach` parameter is set to Enabled, you cannot specify the `InstanceId` parameter. 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: An 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 more information about ESSD performance levels, see [ESSDs](~~122389~~).
public CreateDiskRequest.Builder provisionedIops(Long provisionedIops)
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 2,000 * Valid values when DiskCategory is set to cloud_efficiency: 20 to 32,768 * Valid values when DiskCategory is set to cloud_ssd: 20 to 32,768 * Valid values when DiskCategory is set to cloud_essd: depends on the `PerformanceLevel` value. * Valid values when PerformanceLevel is set to PL0: 40 to 32,768 * Valid values when PerformanceLevel is set to PL1: 20 to 32,768 * Valid values when PerformanceLevel is set to PL2: 461 to 32,768 * Valid values when PerformanceLevel is set to PL3: 1,261 to 32,768 If the `SnapshotId` parameter is specified, the following limits apply to the `SnapshotId` and `Size` parameters: * If the size of the snapshot specified by the `SnapshotId` parameter is greater than the specified `Size` value, the size of the created disk is equal to the specified snapshot size. * If the size of the snapshot specified by the `SnapshotId` parameter is smaller than the specified `Size` value, the size of the created disk is equal to the specified `Size` value.
public CreateDiskRequest.Builder snapshotId(String snapshotId)
The following limits apply to the `SnapshotId` and `Size` parameters: * If the size of the snapshot specified by the `SnapshotId` parameter is greater than the specified `Size` value, the size of the created disk is equal to the specified snapshot size. * If the size of the snapshot specified by the `SnapshotId` parameter is smaller than the specified `Size` value, the size of the created disk is equal to the specified `Size` value.
public CreateDiskRequest.Builder storageClusterId(String storageClusterId)
> You can specify only one of the storage set-related parameters (`StorageSetId` and `StorageSetPartitionNumber`) and dedicated block storage cluster-related parameter (`StorageClusterId`). If you specify more than one of the preceding parameters, the call fails.
public CreateDiskRequest.Builder storageSetId(String storageSetId)
> You can specify only one of the storage set-related parameters (`StorageSetId` and `StorageSetPartitionNumber`) and dedicated block storage cluster-related parameter (`StorageClusterId`). If you specify more than one of the preceding parameters, the call fails.
public CreateDiskRequest.Builder storageSetPartitionNumber(Integer storageSetPartitionNumber)
Default value: 2.
public CreateDiskRequest.Builder tag(List<CreateDiskRequest.Tag> tag)
public CreateDiskRequest.Builder zoneId(String zoneId)
* If the InstanceId parameter is not specified, the ZoneId parameter is required. * You cannot specify ZoneId and InstanceId at the same time.
public CreateDiskRequest build()
Copyright © 2023. All rights reserved.