public static final class CreateLaunchTemplateVersionRequest.DataDisk.Builder extends Object
构造器和说明 |
---|
Builder() |
public CreateLaunchTemplateVersionRequest.DataDisk.Builder autoSnapshotPolicyId(String autoSnapshotPolicyId)
public CreateLaunchTemplateVersionRequest.DataDisk.Builder burstingEnabled(Boolean burstingEnabled)
* true * false
public CreateLaunchTemplateVersionRequest.DataDisk.Builder category(String category)
* cloud: basic disk. * cloud_efficiency: ultra disk. * cloud_ssd: standard SSD. * cloud_auto: ESSD AutoPL disk. * cloud_essd: ESSD. * cloud_essd_entry: ESSD Entry disk. For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.
public CreateLaunchTemplateVersionRequest.DataDisk.Builder deleteWithInstance(Boolean deleteWithInstance)
* true * false Default value: true.
public CreateLaunchTemplateVersionRequest.DataDisk.Builder description(String description)
public CreateLaunchTemplateVersionRequest.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 CreateLaunchTemplateVersionRequest.DataDisk.Builder diskName(String diskName)
public CreateLaunchTemplateVersionRequest.DataDisk.Builder encrypted(String encrypted)
public CreateLaunchTemplateVersionRequest.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 information about ESSD performance levels, see [ESSDs](~~122389~~).
public CreateLaunchTemplateVersionRequest.DataDisk.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 CreateLaunchTemplateVersionRequest.DataDisk.Builder size(Integer size)
* Valid values if you set DataDisk.N.Category to cloud: 5 to 2000. * Valid values if you set DataDisk.N.Category to cloud_efficiency: 20 to 32768. * Valid values if you set DataDisk.N.Category to cloud_ssd: 20 to 32768. * Valid values if you set DataDisk.N.Category to cloud_essd: vary based on the `DataDisk.N.PerformanceLevel` value. * Valid values if you set DataDisk.N.PerformanceLevel to PL0: 1 to 32768. * Valid values if you set DataDisk.N.PerformanceLevel to PL1: 20 to 32768. * Valid values if you set DataDisk.N.PerformanceLevel to PL2: 461 to 32768. * Valid values if you set DataDisk.N.PerformanceLevel to PL3: 1261 to 32768. * Valid values if you set DataDisk.N.Category to cloud_auto: 1 to 32768. * Valid values if you set DataDisk.N.Category 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 `SnapshotId`.
public CreateLaunchTemplateVersionRequest.DataDisk.Builder snapshotId(String snapshotId)
Use snapshots created after July 15, 2013. Otherwise, an error is returned and your request is rejected.
public CreateLaunchTemplateVersionRequest.DataDisk build()
Copyright © 2024. All rights reserved.