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 |
---|---|
Long |
getDiskSize()
Get Data disk size (in GB).
|
String |
getDiskType()
Get Data disk type.
|
String |
getSnapshotId()
Get Data disk snapshot ID, such as `snap-l8psqwnt`.
|
void |
setDiskSize(Long DiskSize)
Set Data disk size (in GB).
|
void |
setDiskType(String DiskType)
Set Data disk type.
|
void |
setSnapshotId(String SnapshotId)
Set Data disk snapshot ID, such as `snap-l8psqwnt`.
|
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. For more information on limits of data disk types, 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.Copyright © 2021. All rights reserved.