public class DataDisk extends AbstractModel
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 |
getDeleteWithInstance()
Get Specifies whether the data disk is terminated along with the termination of the associated CVM instance.
|
Long |
getDiskSize()
Get Data disk size (in GB).
|
String |
getDiskType()
Get Data disk type.
|
Boolean |
getEncrypt()
Get Data disk encryption.
|
String |
getSnapshotId()
Get Data disk snapshot ID, such as `snap-l8psqwnt`.
|
Long |
getThroughputPerformance()
Get Cloud disk performance (MB/s).
|
void |
setDeleteWithInstance(Boolean DeleteWithInstance)
Set Specifies whether the data disk is terminated along with the termination of the associated CVM instance.
|
void |
setDiskSize(Long DiskSize)
Set Data disk size (in GB).
|
void |
setDiskType(String DiskType)
Set Data disk type.
|
void |
setEncrypt(Boolean Encrypt)
Set Data disk encryption.
|
void |
setSnapshotId(String SnapshotId)
Set Data disk snapshot ID, such as `snap-l8psqwnt`.
|
void |
setThroughputPerformance(Long ThroughputPerformance)
Set Cloud disk performance (MB/s).
|
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 DataDisk()
public DataDisk(DataDisk source)
public String getDiskType()
public void setDiskType(String DiskType)
DiskType
- Data disk type. See [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:public 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 [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation.
Note: This field may return null, indicating that no valid values can be obtained.public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId
- Data disk snapshot ID, such as `snap-l8psqwnt`.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getDeleteWithInstance()
public void setDeleteWithInstance(Boolean DeleteWithInstance)
DeleteWithInstance
- Specifies whether the data disk is terminated along with the termination of the associated CVM instance. Values: public Boolean getEncrypt()
public void setEncrypt(Boolean Encrypt)
Encrypt
- Data disk encryption. Valid values: public Long getThroughputPerformance()
public void setThroughputPerformance(Long ThroughputPerformance)
ThroughputPerformance
- Cloud disk performance (MB/s). This parameter is used to purchase extra performance for the cloud disk. For details on the feature and limits, see [Enhanced SSD Performance](https://intl.cloud.tencent.com/document/product/362/51896?from_cn_redirect=1#. E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96 .E6.80.A7.E8.83.BD).
This feature is only available to enhanced SSD (`CLOUD_HSSD`) and tremendous SSD (`CLOUD_TSSD`) disks with a capacity greater than 460 GB.
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2023. All rights reserved.