public class DataDisk extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DataDisk() | 
| DataDisk(DataDisk source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Boolean | getAutoFormatAndMount()Get Whether to automatically format and mount disks. | 
| String | getDiskPartition()Get Mount device name or partition name
Note: This field may return "null", indicating that no valid value can be obtained. | 
| Long | getDiskSize()Get Cloud disk size (GB)
Note: This field may return "null", indicating that no valid value can be obtained. | 
| String | getDiskType()Get Cloud disk type
Note: This field may return "null", indicating that no valid value can be obtained. | 
| String | getEncrypt()Get This parameter is used to create an encrypted cloud disk, with the value fixed as ENCRYPT. | 
| String | getFileSystem()Get File system (ext3/ext4/xfs). | 
| String | getKmsKeyId()Get Custom key for purchasing encrypted disks. | 
| String | getMountTarget()Get Mounting directory
Note: This field may return "null", indicating that no valid value can be obtained. | 
| String | getSnapshotId()Get Snapshot ID. | 
| Long | getThroughputPerformance()Get Cloud disk performance (unit: MB/s), which can be used to purchase additional performance for cloud disks. | 
| void | setAutoFormatAndMount(Boolean AutoFormatAndMount)Set Whether to automatically format and mount disks. | 
| void | setDiskPartition(String DiskPartition)Set Mount device name or partition name
Note: This field may return "null", indicating that no valid value can be obtained. | 
| void | setDiskSize(Long DiskSize)Set Cloud disk size (GB)
Note: This field may return "null", indicating that no valid value can be obtained. | 
| void | setDiskType(String DiskType)Set Cloud disk type
Note: This field may return "null", indicating that no valid value can be obtained. | 
| void | setEncrypt(String Encrypt)Set This parameter is used to create an encrypted cloud disk, with the value fixed as ENCRYPT. | 
| void | setFileSystem(String FileSystem)Set File system (ext3/ext4/xfs). | 
| void | setKmsKeyId(String KmsKeyId)Set Custom key for purchasing encrypted disks. | 
| void | setMountTarget(String MountTarget)Set Mounting directory
Note: This field may return "null", indicating that no valid value can be obtained. | 
| void | setSnapshotId(String SnapshotId)Set Snapshot ID. | 
| void | setThroughputPerformance(Long ThroughputPerformance)Set Cloud disk performance (unit: MB/s), which can be used to purchase additional performance for cloud disks. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic DataDisk()
public DataDisk(DataDisk source)
public String getDiskType()
public void setDiskType(String DiskType)
DiskType - Cloud disk type
Note: This field may return "null", indicating that no valid value can be obtained.public String getFileSystem()
public void setFileSystem(String FileSystem)
FileSystem - File system (ext3/ext4/xfs).
Note: This field may return "null", indicating that no valid value can be obtained.public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize - Cloud disk size (GB)
Note: This field may return "null", indicating that no valid value can be obtained.public Boolean getAutoFormatAndMount()
public void setAutoFormatAndMount(Boolean AutoFormatAndMount)
AutoFormatAndMount - Whether to automatically format and mount disks.
Note: This field may return "null", indicating that no valid value can be obtained.public String getDiskPartition()
public void setDiskPartition(String DiskPartition)
DiskPartition - Mount device name or partition name
Note: This field may return "null", indicating that no valid value can be obtained.public String getMountTarget()
public void setMountTarget(String MountTarget)
MountTarget - Mounting directory
Note: This field may return "null", indicating that no valid value can be obtained.public String getEncrypt()
public void setEncrypt(String Encrypt)
Encrypt - This parameter is used to create an encrypted cloud disk, with the value fixed as ENCRYPT.
Note: This field may return "null", indicating that no valid value can be obtained.public String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId - Custom key for purchasing encrypted disks. When this parameter is input, the Encrypt input parameter cannot be left empty.
Note: This field may return "null", indicating that no valid value can be obtained.public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId - Snapshot ID. If it is input, a cloud disk will be created based on this snapshot. The snapshot must be a data disk snapshot.
Note: This field may return "null", indicating that no valid value can be obtained.public Long getThroughputPerformance()
public void setThroughputPerformance(Long ThroughputPerformance)
ThroughputPerformance - Cloud disk performance (unit: MB/s), which can be used to purchase additional performance for cloud disks.
Note: This field may return "null", indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.