public static class CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
autoSnapshotPolicyId
The ID of the automatic snapshot policy to be applied to data disk N.
|
Boolean |
burstingEnabled
Specifies whether to enable the performance burst feature for data disk N.
|
String |
category
The category of data disk N.
|
Boolean |
deleteWithInstance
Specifies whether to release data disk N when the instance is released.
|
String |
description
The description of data disk N.
|
String |
device
> This parameter will be removed in the future.
|
String |
diskName
The name of data disk N.
|
String |
encrypted
Specifies whether to encrypt data disk N.
|
String |
performanceLevel
The performance level of the ESSD to use as data disk N.
|
Long |
provisionedIops
The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N.
|
Integer |
size
The size of data disk N.
|
String |
snapshotId
The ID of the snapshot to use to create data disk N.
|
构造器和说明 |
---|
CreateLaunchTemplateVersionRequestDataDisk() |
@NameInMap(value="AutoSnapshotPolicyId") public String autoSnapshotPolicyId
The ID of the automatic snapshot policy to be applied to data disk N.
@NameInMap(value="BurstingEnabled") public Boolean burstingEnabled
Specifies whether to enable the performance burst feature for data disk N. Valid values:
* true
* false
@NameInMap(value="Category") public String category
The category of data disk N. Valid values:
* cloud: basic disk
* cloud_efficiency: ultra disk
* cloud_ssd: standard SSD.
* cloud_essd: ESSD cloud_auto: ESSD AutoPL disk
For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to release data disk N when the instance is released. Valid values:
* true: releases data disk N when the instance is released.
* false: does not release data disk N when the instance is released.
Default value: true.
@NameInMap(value="Description") public String description
The description of data disk N. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="Device") public String device
> This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
@NameInMap(value="DiskName") public String diskName
The name of data disk N. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="Encrypted") public String encrypted
Specifies whether to encrypt data disk N.
@NameInMap(value="PerformanceLevel") public String performanceLevel
The performance level of the ESSD to use as data disk N. The value of N must be the same as that in `DataDisk.N.Category` when DataDisk.N.Category is set to cloud_essd. Default value: PL1. Valid values:
* PL0: An 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.
For more information about ESSD performance levels, see [ESSDs](~~122389~~).
@NameInMap(value="ProvisionedIops") public Long provisionedIops
The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}
Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}
> This parameter is available only if you set the DataDisk.N.Category parameter to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~) and [Modify the performance configurations of an ESSD AutoPL disk](~~413275~~).
@NameInMap(value="Size") public Integer size
The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values:
* Valid values when DataDisk.N.Category is set to cloud: 5 to 2000.
* 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: depend on the `DataDisk.N.PerformanceLevel` value.
* Valid values when DataDisk.N.PerformanceLevel is set to PL0: 40 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.
The value of this parameter must be greater than or equal to the size of the snapshot specified by the `SnapshotId` parameter.
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the snapshot to use to create data disk N. Valid values of N: 1 to 16. When the `DataDisk.N.SnapshotId` parameter is specified, the `DataDisk.N.Size` parameter is ignored. The data disk is created based on the size of the specified snapshot.
Use snapshots that were created on or after July 15, 2013. Otherwise, an error is returned and your request is rejected.
public CreateLaunchTemplateVersionRequestDataDisk()
public static CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk build(Map<String,?> map) throws Exception
Exception
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setAutoSnapshotPolicyId(String autoSnapshotPolicyId)
public String getAutoSnapshotPolicyId()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setBurstingEnabled(Boolean burstingEnabled)
public Boolean getBurstingEnabled()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setCategory(String category)
public String getCategory()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setDeleteWithInstance(Boolean deleteWithInstance)
public Boolean getDeleteWithInstance()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setDescription(String description)
public String getDescription()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setDevice(String device)
public String getDevice()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setDiskName(String diskName)
public String getDiskName()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setEncrypted(String encrypted)
public String getEncrypted()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setPerformanceLevel(String performanceLevel)
public String getPerformanceLevel()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setProvisionedIops(Long provisionedIops)
public Long getProvisionedIops()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setSize(Integer size)
public Integer getSize()
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk setSnapshotId(String snapshotId)
public String getSnapshotId()
Copyright © 2023. All rights reserved.