public static class CreateInstanceRequest.CreateInstanceRequestDataDisk
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
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 |
encryptAlgorithm
This parameter is not publicly available.
|
Boolean |
encrypted
Specifies whether to encrypt data disk N.
|
String |
KMSKeyId
The ID of the KMS key to use for data disk N.
|
String |
performanceLevel
The performance level of the ESSD 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.
|
String |
storageClusterId
The ID of the dedicated block storage cluster to which data disk N belongs.
|
构造器和说明 |
---|
CreateInstanceRequestDataDisk() |
@NameInMap(value="Category") public String category
The category of data disk N. Valid values:
cloud_efficiency: utra 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.
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://
.
TestDescription
@NameInMap(value="Device") public String device
The mount point of data disk N.
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 this parameter to the mount point of data disk N contained in the full image and modify the
DataDisk.N.Size
andDataDisk.N.Category
parameters to change the category and size of data disk N created based on the image.
/dev/xvdb
@NameInMap(value="DiskName") public String diskName
The name of data disk N. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
example:DataDiskName
@NameInMap(value="EncryptAlgorithm") public String encryptAlgorithm
example:This parameter is not publicly available.
hide
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to encrypt data disk N. Valid values:
Default value: false.
example:false
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the KMS key to use for data disk N.
example:0e478b7a-4262-4802-b8cb-00d****
@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 more information about ESSD performance levels, see ESSDs.
example:PL2
@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_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.Category to cloud: 5 to 2000.
example: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.
DataDisk.N.SnapshotId
is specified, DataDisk.N.Size
is ignored. The data disk is created based on the size of the specified snapshot.s-bp17441ohwka0yuh****
@NameInMap(value="StorageClusterId") public String storageClusterId
The ID of the dedicated block storage cluster to which data disk N belongs. If you want to use a disk in a dedicated block storage cluster as data disk N when you create the instance, specify this parameter.
example:dbsc-j5e1sf2vaf5he8m2****
public static CreateInstanceRequest.CreateInstanceRequestDataDisk build(Map<String,?> map) throws Exception
Exception
public CreateInstanceRequest.CreateInstanceRequestDataDisk setCategory(String category)
public String getCategory()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setDeleteWithInstance(Boolean deleteWithInstance)
public Boolean getDeleteWithInstance()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setDescription(String description)
public String getDescription()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setDevice(String device)
public String getDevice()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setDiskName(String diskName)
public String getDiskName()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setEncryptAlgorithm(String encryptAlgorithm)
public String getEncryptAlgorithm()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setEncrypted(Boolean encrypted)
public Boolean getEncrypted()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setKMSKeyId(String KMSKeyId)
public String getKMSKeyId()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setPerformanceLevel(String performanceLevel)
public String getPerformanceLevel()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setSize(Integer size)
public Integer getSize()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setSnapshotId(String snapshotId)
public String getSnapshotId()
public CreateInstanceRequest.CreateInstanceRequestDataDisk setStorageClusterId(String storageClusterId)
public String getStorageClusterId()
Copyright © 2024. All rights reserved.