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 |
---|---|
String |
getCdcId()
Get ID of the dedicated cluster to which the instance belongs.
|
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.
|
Long |
getThroughputPerformance()
Get Cloud disk performance, in MB/s
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setCdcId(String CdcId)
Set ID of the dedicated cluster to which the instance belongs.
|
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 |
setThroughputPerformance(Long ThroughputPerformance)
Set Cloud disk performance, in MB/s
Note: this field may return `null`, indicating that no valid values can be obtained.
|
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 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. Note that it’s not available for `LOCAL_BASIC` and `LOCAL_SSD` disks.
It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`.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.public Long getThroughputPerformance()
public void setThroughputPerformance(Long ThroughputPerformance)
ThroughputPerformance
- Cloud disk performance, in MB/s
Note: this field may return `null`, indicating that no valid values can be obtained.public String getCdcId()
public void setCdcId(String CdcId)
CdcId
- ID of the dedicated cluster to which the instance belongs.
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.