public static class CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
autoSnapshotPolicyId
The ID of the automatic snapshot policy to apply 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
The mount point of data disk N.
|
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.
|
Integer |
size
The size of data disk N.
|
String |
snapshotId
The ID of the snapshot to use to create data disk N.
|
构造器和说明 |
---|
CreateLaunchTemplateRequestDataDisk() |
@NameInMap(value="AutoSnapshotPolicyId") public String autoSnapshotPolicyId
The ID of the automatic snapshot policy to apply to data disk N.
example:sp-m5e7fa9ute44ssa****
@NameInMap(value="BurstingEnabled") public Boolean burstingEnabled
Specifies whether to enable the performance burst feature for data disk N. Valid values:
true
@NameInMap(value="Category") public String category
The category of data disk N. Valid values:
For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.
example:cloud_ssd
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to release data disk N when the instance is released. Valid values:
Default value: true.
example: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://
.
testDataDiskDescription
@NameInMap(value="Device") public String device
The mount point of data disk N. The mount points are named based on the number of data disks:
[b-z]
.[aa-zz]
. For example, the 26th data disk is named /dev/xvdaa, the 27th data disk is named /dev/xvdab, and so on.example: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
andDataDisk.N.Category
to change the category and size of data disk N created based on the image.
null
@NameInMap(value="DiskName") public String diskName
The name of data disk N. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http://
or https://
. The name can contain digits, letters, colons (:), underscores (_), and hyphens (-).
testDataDiskName
@NameInMap(value="Encrypted") public String encrypted
Specifies whether to encrypt data disk N.
example:false
@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. Valid values:
For information about ESSD performance levels, see ESSDs.
example:PL1
@NameInMap(value="ProvisionedIops") public Long provisionedIops
The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}.
Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}.
example:This parameter is available only if you set DiskCategory to cloud_auto. For more information, see ESSD AutoPL disks and Modify the performance configurations of an ESSD AutoPL disk.
50000
@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 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 value of DataDisk.N.PerformanceLevel
.
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
.
2000
@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. If you specify DataDisk.N.SnapshotId
, DataDisk.N.Size
is ignored. The data disk is created with the size of the specified snapshot.
example:Use snapshots created on or after July 15, 2013. Otherwise, an error is returned and your request is rejected.
s-bp17441ohwka0yuh****
public static CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk build(Map<String,?> map) throws Exception
Exception
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setAutoSnapshotPolicyId(String autoSnapshotPolicyId)
public String getAutoSnapshotPolicyId()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setBurstingEnabled(Boolean burstingEnabled)
public Boolean getBurstingEnabled()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setCategory(String category)
public String getCategory()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setDeleteWithInstance(Boolean deleteWithInstance)
public Boolean getDeleteWithInstance()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setDescription(String description)
public String getDescription()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setDevice(String device)
public String getDevice()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setDiskName(String diskName)
public String getDiskName()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setEncrypted(String encrypted)
public String getEncrypted()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setPerformanceLevel(String performanceLevel)
public String getPerformanceLevel()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setProvisionedIops(Long provisionedIops)
public Long getProvisionedIops()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setSize(Integer size)
public Integer getSize()
public CreateLaunchTemplateRequest.CreateLaunchTemplateRequestDataDisk setSnapshotId(String snapshotId)
public String getSnapshotId()
Copyright © 2024. All rights reserved.