public static final class RunInstancesRequest.DataDisk.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
RunInstancesRequest.DataDisk.Builder |
autoSnapshotPolicyId(String autoSnapshotPolicyId)
The ID of the automatic snapshot policy to apply to data disk N.
|
RunInstancesRequest.DataDisk |
build() |
RunInstancesRequest.DataDisk.Builder |
burstingEnabled(Boolean burstingEnabled)
Specifies whether to enable the performance burst feature for data disk N.
|
RunInstancesRequest.DataDisk.Builder |
category(String category)
The category of data disk N.
|
RunInstancesRequest.DataDisk.Builder |
deleteWithInstance(Boolean deleteWithInstance)
Specifies whether to release data disk N when the instance is released.
|
RunInstancesRequest.DataDisk.Builder |
description(String description)
The description of data disk N.
|
RunInstancesRequest.DataDisk.Builder |
device(String device)
The mount point of data disk N.
|
RunInstancesRequest.DataDisk.Builder |
diskName(String diskName)
The name of data disk N.
|
RunInstancesRequest.DataDisk.Builder |
encryptAlgorithm(String encryptAlgorithm)
> This parameter is not publicly available.
|
RunInstancesRequest.DataDisk.Builder |
encrypted(String encrypted)
Specifies whether to encrypt data disk N.
|
RunInstancesRequest.DataDisk.Builder |
KMSKeyId(String KMSKeyId)
The ID of the Key Management Service (KMS) key to use for data disk N.
|
RunInstancesRequest.DataDisk.Builder |
performanceLevel(String performanceLevel)
The performance level of the ESSD to use as data disk N.
|
RunInstancesRequest.DataDisk.Builder |
provisionedIops(Long provisionedIops)
The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N.
|
RunInstancesRequest.DataDisk.Builder |
size(Integer size)
The size of data disk N.
|
RunInstancesRequest.DataDisk.Builder |
snapshotId(String snapshotId)
The ID of the snapshot to use to create data disk N.
|
RunInstancesRequest.DataDisk.Builder |
storageClusterId(String storageClusterId)
The ID of the dedicated block storage cluster to which data disk N belongs.
|
public RunInstancesRequest.DataDisk.Builder autoSnapshotPolicyId(String autoSnapshotPolicyId)
public RunInstancesRequest.DataDisk.Builder burstingEnabled(Boolean burstingEnabled)
* true * false > This parameter is available only if you set DataDisk.N.Category to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~).
public RunInstancesRequest.DataDisk.Builder category(String category)
* cloud_efficiency: ultra disk. * cloud_ssd: standard SSD. * cloud_essd: ESSD. * cloud: basic disk. * cloud_auto: ESSD AutoPL disk. * cloud_essd_entry: ESSD Entry disk. ** **Note** This parameter can be set to `cloud_essd_entry` only when `InstanceType` is set to `ecs.u1` or `ecs.e`. * elastic_ephemeral_disk_standard: standard elastic ephemeral disk. * elastic_ephemeral_disk_premium: premium elastic ephemeral disk. For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.
public RunInstancesRequest.DataDisk.Builder deleteWithInstance(Boolean deleteWithInstance)
* true * false Default value: true.
public RunInstancesRequest.DataDisk.Builder description(String description)
public RunInstancesRequest.DataDisk.Builder device(String device)
* 1st to 25th data disks: /dev/xvd`[b-z]`. * From the 26th data disk on: /dev/xvd`[aa-zz]`. For example, the 26th data disk is named /dev/xvdaa, the 27th data disk is named /dev/xvdab, and so on. > This parameter is applicable to scenarios in which a full image is used to create instances. A full image is an image that contains an operating system, application software, and business data. For these scenarios, you can set the parameter to the mount point of data disk N contained in the full image and modify `DataDisk.N.Size` and `DataDisk.N.Category` to change the category and size of data disk N created based on the image.
public RunInstancesRequest.DataDisk.Builder diskName(String diskName)
public RunInstancesRequest.DataDisk.Builder encryptAlgorithm(String encryptAlgorithm)
public RunInstancesRequest.DataDisk.Builder encrypted(String encrypted)
* true * false Default value: false.
public RunInstancesRequest.DataDisk.Builder KMSKeyId(String KMSKeyId)
public RunInstancesRequest.DataDisk.Builder performanceLevel(String performanceLevel)
* PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. * PL1 (default): 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. For more information about ESSD performance levels, see [ESSDs](~~122389~~).
public RunInstancesRequest.DataDisk.Builder provisionedIops(Long provisionedIops)
Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}. > This parameter is available only if you set DataDisk.N.Category to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~).
public RunInstancesRequest.DataDisk.Builder size(Integer size)
* Valid values when DataDisk.N.Category is set to cloud_efficiency: 20 to 32768. * Valid values when DataDisk.N.Category is set to cloud_ssd: 20 to 32768. * Valid values when DataDisk.N.Category is set to cloud_essd: vary based on the value of `DataDisk.N.PerformanceLevel`. * Valid values when DataDisk.N.PerformanceLevel is set to PL0: 1 to 32768. * Valid values when DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768. * Valid values when DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768. * Valid values when DataDisk.N.PerformanceLevel is set to PL3: 1261 to 32768. * Valid values when DataDisk.N.Category is set to cloud: 5 to 2000. * Valid values when DataDisk.N.Category is set to cloud_auto: 1 to 32768. * Valid values when DataDisk.N.Category is set to cloud_essd_entry: 10 to 32768. > The value of this parameter must be greater than or equal to the size of the snapshot specified by `DataDisk.N.SnapshotId`.
public RunInstancesRequest.DataDisk.Builder snapshotId(String snapshotId)
If `DataDisk.N.SnapshotId` is specified, `DataDisk.N.Size` is ignored. The data disk is created based on the size of the specified snapshot. Use snapshots created after July 15, 2013. Otherwise, an error is returned and your request is rejected.
public RunInstancesRequest.DataDisk.Builder storageClusterId(String storageClusterId)
public RunInstancesRequest.DataDisk build()
Copyright © 2024. All rights reserved.