public class CreateDisksRequest extends AbstractModel
Constructor and Description |
---|
CreateDisksRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getClientToken()
Get A string to ensure the idempotency of the request, which is generated by the client.
|
DiskChargePrepaid |
getDiskChargePrepaid()
Get Relevant parameter settings for the prepaid mode (i.e., monthly subscription).
|
String |
getDiskChargeType()
Get Cloud disk billing method.
|
Long |
getDiskCount()
Get If the number of cloud disks to be created is left empty, the default is 1.
|
String |
getDiskName()
Get The displayed name of the cloud disk.
|
Long |
getDiskSize()
Get Cloud hard disk size (in GB).
|
String |
getDiskType()
Get Type of hard disk medium.
|
String |
getEncrypt()
Get This parameter is used to create an encrypted cloud disk.
|
Placement |
getPlacement()
Get The location of the instance.
|
Boolean |
getShareable()
Get The default of optional parameter is False.
|
String |
getSnapshotId()
Get Snapshot ID.
|
Tag[] |
getTags()
Get Cloud disk binding tag.
|
void |
setClientToken(String ClientToken)
Set A string to ensure the idempotency of the request, which is generated by the client.
|
void |
setDiskChargePrepaid(DiskChargePrepaid DiskChargePrepaid)
Set Relevant parameter settings for the prepaid mode (i.e., monthly subscription).
|
void |
setDiskChargeType(String DiskChargeType)
Set Cloud disk billing method.
|
void |
setDiskCount(Long DiskCount)
Set If the number of cloud disks to be created is left empty, the default is 1.
|
void |
setDiskName(String DiskName)
Set The displayed name of the cloud disk.
|
void |
setDiskSize(Long DiskSize)
Set Cloud hard disk size (in GB).
|
void |
setDiskType(String DiskType)
Set Type of hard disk medium.
|
void |
setEncrypt(String Encrypt)
Set This parameter is used to create an encrypted cloud disk.
|
void |
setPlacement(Placement Placement)
Set The location of the instance.
|
void |
setShareable(Boolean Shareable)
Set The default of optional parameter is False.
|
void |
setSnapshotId(String SnapshotId)
Set Snapshot ID.
|
void |
setTags(Tag[] Tags)
Set Cloud disk binding tag.
|
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 String getDiskType()
public void setDiskType(String DiskType)
DiskType
- Type of hard disk medium. Value range: public String getDiskChargeType()
public void setDiskChargeType(String DiskChargeType)
DiskChargeType
- Cloud disk billing method. POSTPAID_BY_HOUR: pay as you go by hourpublic Placement getPlacement()
public void setPlacement(Placement Placement)
Placement
- The location of the instance. The availability zone and the project that the instance belongs to can be specified using this parameter. If the project is not specified, it will be created under the default project.public String getDiskName()
public void setDiskName(String DiskName)
DiskName
- The displayed name of the cloud disk. If it is left empty, the default is 'Not named'. The maximum length cannot exceed 60 bytes.public Long getDiskCount()
public void setDiskCount(Long DiskCount)
DiskCount
- If the number of cloud disks to be created is left empty, the default is 1. There is a limit to the maximum number of cloud disks that can be created for a single request. For more information, please see [CBS Use Limits](https://cloud.tencent.com/doc/product/362/5145).public DiskChargePrepaid getDiskChargePrepaid()
public void setDiskChargePrepaid(DiskChargePrepaid DiskChargePrepaid)
DiskChargePrepaid
- Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter. public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize
- Cloud hard disk size (in GB). public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId
- Snapshot ID. If this parameter is specified, the cloud disk is created based on the snapshot. The snapshot type must be a data disk snapshot. The snapshot can be queried in the DiskUsage field in the output parameter through the API [DescribeSnapshots](/document/product/362/15647).public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken
- A string to ensure the idempotency of the request, which is generated by the client. Each request shall have a unique string with a maximum of 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be ensured.public String getEncrypt()
public void setEncrypt(String Encrypt)
Encrypt
- This parameter is used to create an encrypted cloud disk. Its value is always ENCRYPT.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Cloud disk binding tag.public Boolean getShareable()
public void setShareable(Boolean Shareable)
Shareable
- The default of optional parameter is False. When True is selected, the cloud disk will be created as a shareable cloud disk.Copyright © 2020. All rights reserved.