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 The data disk size in GB.
|
String |
getDiskType()
Get The data disk type.
|
Boolean |
getEncrypt()
Get Specifies whether the data disk is encrypted.
|
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 The data disk size in GB.
|
void |
setDiskType(String DiskType)
Set The data disk type.
|
void |
setEncrypt(Boolean Encrypt)
Set Specifies whether the data disk is encrypted.
|
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, toJsonString
public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize
- The data disk size in GB. The minimum increment is 10 GB. Different types of data disks have different value ranges. For details, see [Instance Specifications](https://intl.cloud.tencent.com/document/product/213/11518). The default value is 0, indicating that no data disk is purchased. For more information, see the CVM documentation.public String getDiskType()
public void setDiskType(String DiskType)
DiskType
- The data disk type. For more information about the limits on different data disk types, see [Instance Specifications](/document/product/213/2177). Valid values: public String getDiskId()
public void setDiskId(String DiskId)
DiskId
- Data disk ID. Data disks whose type is `LOCAL_BASIC` or `LOCAL_SSD` do not have an ID and do not support this parameter currently.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. Values:
Copyright © 2020. All rights reserved.