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 |
getBurstPerformance()
Get Burstable performance.
|
String |
getCdcId()
Get Specifies the dedicated cluster ID belonging to.
|
Boolean |
getDeleteWithInstance()
Get Whether the data disk is terminated with the instance.
|
String |
getDiskId()
Get Specifies the data disk ID.
|
String |
getDiskName()
Get Disk name, with a length not exceeding 128 characters.
|
Long |
getDiskSize()
Get Data disk size, unit: GiB.
|
String |
getDiskType()
Get Specifies the data disk type.
|
Boolean |
getEncrypt()
Get Specifies whether the data disk is encrypted.
|
String |
getKmsKeyId()
Get Custom CMK ID, value is UUID or similar to kms-abcd1234.
|
String |
getSnapshotId()
Get Data disk snapshot ID.
|
Long |
getThroughputPerformance()
Get Cloud disk performance (unit: MiB/s).
|
void |
setBurstPerformance(Boolean BurstPerformance)
Set Burstable performance.
|
void |
setCdcId(String CdcId)
Set Specifies the dedicated cluster ID belonging to.
|
void |
setDeleteWithInstance(Boolean DeleteWithInstance)
Set Whether the data disk is terminated with the instance.
|
void |
setDiskId(String DiskId)
Set Specifies the data disk ID.
|
void |
setDiskName(String DiskName)
Set Disk name, with a length not exceeding 128 characters.
|
void |
setDiskSize(Long DiskSize)
Set Data disk size, unit: GiB.
|
void |
setDiskType(String DiskType)
Set Specifies the data disk type.
|
void |
setEncrypt(Boolean Encrypt)
Set Specifies whether the data disk is encrypted.
|
void |
setKmsKeyId(String KmsKeyId)
Set Custom CMK ID, value is UUID or similar to kms-abcd1234.
|
void |
setSnapshotId(String SnapshotId)
Set Data disk snapshot ID.
|
void |
setThroughputPerformance(Long ThroughputPerformance)
Set Cloud disk performance (unit: MiB/s).
|
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, toJsonString
public DataDisk()
public DataDisk(DataDisk source)
public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize
- Data disk size, unit: GiB. the minimum adjustment step size is 10 GiB. the value ranges of different data disk types vary. for specific limitations, see the storage overview (https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). the default value is 0, which means no data disk purchase. for more restrictions, see the product document.public String getDiskType()
public void setDiskType(String DiskType)
DiskType
- Specifies the data disk type. for restrictions on data disk types, refer to [storage overview](https://www.tencentcloud.comom/document/product/213/4952?from_cn_redirect=1). valid values: public String getDiskId()
public void setDiskId(String DiskId)
DiskId
- Specifies the data disk ID.
This parameter currently only serves as a response parameter for query apis such as `DescribeInstances`, and cannot be used as an input parameter for write apis such as `RunInstances`.public Boolean getDeleteWithInstance()
public void setDeleteWithInstance(Boolean DeleteWithInstance)
DeleteWithInstance
- Whether the data disk is terminated with the instance. value range: public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId
- Data disk snapshot ID. the size of the selected data disk snapshot must be less than the data disk size.public Boolean getEncrypt()
public void setEncrypt(Boolean Encrypt)
Encrypt
- Specifies whether the data disk is encrypted. value range: public String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId
- Custom CMK ID, value is UUID or similar to kms-abcd1234. used for encrypted cloud disk.
This parameter is currently only used for the `RunInstances` api.
Note: This field may return null, indicating that no valid value is found.public Long getThroughputPerformance()
public void setThroughputPerformance(Long ThroughputPerformance)
ThroughputPerformance
- Cloud disk performance (unit: MiB/s). specifies additional performance for cloud disks.
Currently only supports extreme cbs (CLOUD_TSSD) and enhanced SSD CLOUD disk (CLOUD_HSSD).
Note: This field may return null, indicating that no valid value is found.public String getCdcId()
public void setCdcId(String CdcId)
CdcId
- Specifies the dedicated cluster ID belonging to.
Note: This field may return null, indicating that no valid value is found.public Boolean getBurstPerformance()
public void setBurstPerformance(Boolean BurstPerformance)
BurstPerformance
- Burstable performance.
Note: this field is in beta test..public String getDiskName()
public void setDiskName(String DiskName)
DiskName
- Disk name, with a length not exceeding 128 characters.Copyright © 2025. All rights reserved.