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 Burst performance.
|
String |
getCdcId()
Get Specifies the exclusive cluster ID it belongs 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 Data disk type.
|
Boolean |
getEncrypt()
Get Specifies whether the data disk is encrypted.
|
String |
getKmsKeyId()
Get Custom CMK's corresponding ID, with a value of UUID or something similar to kms - abcd1234.
|
String |
getSnapshotId()
Get Data disk snapshot ID.
|
Long |
getThroughputPerformance()
Get Specifies the cloud disk performance (unit: MiB/s).
|
void |
setBurstPerformance(Boolean BurstPerformance)
Set Burst performance.
|
void |
setCdcId(String CdcId)
Set Specifies the exclusive cluster ID it belongs 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 Data disk type.
|
void |
setEncrypt(Boolean Encrypt)
Set Specifies whether the data disk is encrypted.
|
void |
setKmsKeyId(String KmsKeyId)
Set Custom CMK's corresponding ID, with a value of UUID or something similar to kms - abcd1234.
|
void |
setSnapshotId(String SnapshotId)
Set Data disk snapshot ID.
|
void |
setThroughputPerformance(Long ThroughputPerformance)
Set Specifies the 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, 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
- Data disk type. For the detailed restrictions on the data disk type, refer to [Storage Overview](https://cloud.tencent.com/document/product/213/4952). 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's corresponding ID, with a value of UUID or something similar to kms - abcd1234. used for encrypting cloud disks.
This parameter is currently only used for the `RunInstances` api.public Long getThroughputPerformance()
public void setThroughputPerformance(Long ThroughputPerformance)
ThroughputPerformance
- Specifies the cloud disk performance (unit: MiB/s). using this parameter allows you to purchase additional performance for the cloud disk.
Currently only supports ultra-fast CLOUD disk (CLOUD_TSSD) and enhanced SSD CLOUD disk (CLOUD_HSSD).public String getCdcId()
public void setCdcId(String CdcId)
CdcId
- Specifies the exclusive cluster ID it belongs to.public Boolean getBurstPerformance()
public void setBurstPerformance(Boolean BurstPerformance)
BurstPerformance
- Burst performance.
Note: this feature 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.