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 Data disk size (in GB).
|
String |
getDiskType()
Get The type of the data disk.
|
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.
|
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 The type of the data disk.
|
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 |
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
- 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://cloud.tencent.com/document/product/213/4952). 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
- The type of the data disk. For more information regarding data disk types and limits, refer to [Storage Overview](https://cloud.tencent.com/document/product/213/4952). Valid values: public String getDiskId()
public void setDiskId(String DiskId)
DiskId
- Data disk ID. Data disks of the type `LOCAL_BASIC` or `LOCAL_SSD` do not have IDs and do not support this parameter.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.Copyright © 2020. All rights reserved.