public class DataDisk extends AbstractModel
| Constructor and Description | 
|---|
| DataDisk() | 
| Modifier and Type | Method and Description | 
|---|---|
| Boolean | getDeleteWithInstance()Get Whether to terminate the data disk when its CVM is terminated. | 
| String | getDiskId()Get Data disk ID. | 
| Long | getDiskSize()Get Data disk size (in GB). | 
| String | getDiskType()Get Data disk type. | 
| Boolean | getEncrypt()Get Specifies whether the data disk is encrypted. | 
| String | getKmsKeyId()Get ID of the custom CMK in the format of UUID or “kms-abcd1234”. | 
| String | getSnapshotId()Get Data disk snapshot ID. | 
| void | setDeleteWithInstance(Boolean DeleteWithInstance)Set Whether to terminate the data disk when its CVM is terminated. | 
| void | setDiskId(String DiskId)Set Data disk ID. | 
| void | setDiskSize(Long DiskSize)Set Data disk size (in GB). | 
| void | setDiskType(String DiskType)Set Data disk type. | 
| void | setEncrypt(Boolean Encrypt)Set Specifies whether the data disk is encrypted. | 
| void | setKmsKeyId(String KmsKeyId)Set ID of the custom CMK in the format of UUID or “kms-abcd1234”. | 
| void | setSnapshotId(String SnapshotId)Set Data disk snapshot ID. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize - Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation.public String getDiskType()
public void setDiskType(String DiskType)
DiskType - Data disk type. For more information about limits on different data disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Valid values: public String getDiskId()
public void setDiskId(String DiskId)
DiskId - Data disk ID. Data disks of the type `LOCAL_BASIC` or `LOCAL_SSD` do not have IDs and do not support this parameter.public Boolean getDeleteWithInstance()
public void setDeleteWithInstance(Boolean DeleteWithInstance)
DeleteWithInstance - Whether to terminate the data disk when its CVM is terminated. Valid values:
public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId - Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk.
Note: This field may return null, indicating that no valid value is found.public Boolean getEncrypt()
public void setEncrypt(Boolean Encrypt)
Encrypt - Specifies whether the data disk is encrypted. Valid values: 
public String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId - ID of the custom CMK in the format of UUID or “kms-abcd1234”. This parameter is used to encrypt cloud disks.
Currently, this parameter is only used in the `RunInstances` API.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2020. All rights reserved.