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
The algorithm to use to encrypt data disk N.
|
Boolean |
encrypted
Specifies whether to encrypt data disk N.
|
String |
KMSKeyId
The ID of the Key Management Service (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.
|
构造器和说明 |
---|
CreateInstanceRequestDataDisk() |
@NameInMap(value="Category") public String category
The category of data disk N. Valid values:
* cloud_efficiency: ultra disk
* cloud_ssd: standard SSD
* cloud_essd: ESSD
* cloud: basic 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.
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
The mount point of data disk N.
> 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="EncryptAlgorithm") public String encryptAlgorithm
The algorithm to use to encrypt data disk N.
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to encrypt data disk N.
Default value: false.
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the Key Management Service (KMS) key to use for data disk N.
@NameInMap(value="PerformanceLevel") public String performanceLevel
The performance level of the ESSD to use as data disk N. The N value 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: A single 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="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_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 the DataDisk.N.PerformanceLevel parameter is set to PL0: 40 to 32768.
* Valid values when the DataDisk.N.PerformanceLevel parameter is set to PL1: 20 to 32768.
* Valid values when the DataDisk.N.PerformanceLevel parameter is set to PL2: 461 to 32768.
* Valid values when the DataDisk.N.PerformanceLevel parameter is set to PL3: 1261 to 32768.
* Valid values when DataDisk.N.Category is set to cloud: 5 to 2000.
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.
* If the `DataDisk.N.SnapshotId` parameter is specified, the `DataDisk.N.Size` parameter is ignored and the data disk is created with the size of the specified snapshot.
* Use snapshots created after July 15, 2013. Otherwise, an error is returned and your request is rejected.
@NameInMap(value="StorageClusterId") public String storageClusterId
The ID of the dedicated block storage cluster. If you want to use a disk in a dedicated block storage cluster as data disk N when you create the instance, you must specify this parameter.
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 © 2023. All rights reserved.