public class CreateDisksRequest extends AbstractModel
Constructor and Description |
---|
CreateDisksRequest() |
CreateDisksRequest(CreateDisksRequest 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 |
---|---|
AutoMountConfiguration |
getAutoMountConfiguration()
Get Specifies whether to automatically attach and initialize the newly created data disk.
|
String |
getClientToken()
Get A unique string supplied by the client to ensure that the request is idempotent.
|
Long |
getDeleteSnapshot()
Get Whether to delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk.
|
Long |
getDiskBackupQuota()
Get Specifies the cloud disk backup point quota.
|
DiskChargePrepaid |
getDiskChargePrepaid()
Get Relevant parameter settings for the prepaid mode (i.e., monthly subscription).
|
String |
getDiskChargeType()
Get Cloud disk billing mode.
|
Long |
getDiskCount()
Get Number of cloud disks to be created.
|
String |
getDiskName()
Get Cloud disk name.
|
Long |
getDiskSize()
Get Cloud disk size in GB.
|
String |
getDiskType()
Get Cloud disk media type.
|
String |
getEncrypt()
Get This parameter is used to create encrypted cloud disks.
|
Placement |
getPlacement()
Get Location of the instance.
|
Boolean |
getShareable()
Get Optional parameter.
|
String |
getSnapshotId()
Get Snapshot ID.
|
Tag[] |
getTags()
Get Tags bound to the cloud disk.
|
Long |
getThroughputPerformance()
Get Extra performance purchased for a cloud disk.
This optional parameter is only valid for ulTra SSD (CLOUD_TSSD) and Enhanced SSD (CLOUD_HSSD). |
void |
setAutoMountConfiguration(AutoMountConfiguration AutoMountConfiguration)
Set Specifies whether to automatically attach and initialize the newly created data disk.
|
void |
setClientToken(String ClientToken)
Set A unique string supplied by the client to ensure that the request is idempotent.
|
void |
setDeleteSnapshot(Long DeleteSnapshot)
Set Whether to delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk.
|
void |
setDiskBackupQuota(Long DiskBackupQuota)
Set Specifies the cloud disk backup point quota.
|
void |
setDiskChargePrepaid(DiskChargePrepaid DiskChargePrepaid)
Set Relevant parameter settings for the prepaid mode (i.e., monthly subscription).
|
void |
setDiskChargeType(String DiskChargeType)
Set Cloud disk billing mode.
|
void |
setDiskCount(Long DiskCount)
Set Number of cloud disks to be created.
|
void |
setDiskName(String DiskName)
Set Cloud disk name.
|
void |
setDiskSize(Long DiskSize)
Set Cloud disk size in GB.
|
void |
setDiskType(String DiskType)
Set Cloud disk media type.
|
void |
setEncrypt(String Encrypt)
Set This parameter is used to create encrypted cloud disks.
|
void |
setPlacement(Placement Placement)
Set Location of the instance.
|
void |
setShareable(Boolean Shareable)
Set Optional parameter.
|
void |
setSnapshotId(String SnapshotId)
Set Snapshot ID.
|
void |
setTags(Tag[] Tags)
Set Tags bound to the cloud disk.
|
void |
setThroughputPerformance(Long ThroughputPerformance)
Set Extra performance purchased for a cloud disk.
This optional parameter is only valid for ulTra SSD (CLOUD_TSSD) and Enhanced SSD (CLOUD_HSSD). |
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 CreateDisksRequest()
public CreateDisksRequest(CreateDisksRequest source)
public Placement getPlacement()
public void setPlacement(Placement Placement)
Placement
- Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone and project. If no project is specified, the default project will be used.public String getDiskChargeType()
public void setDiskChargeType(String DiskChargeType)
DiskChargeType
- Cloud disk billing mode. POSTPAID_BY_HOUR: Pay-as-you-go by hourpublic String getDiskType()
public void setDiskType(String DiskType)
DiskType
- Cloud disk media type. Valid values: public String getDiskName()
public void setDiskName(String DiskName)
DiskName
- Cloud disk name. If it is not specified, "Unnamed" will be used by default. The maximum length is 60 bytes.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Tags bound to the cloud disk.public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId
- Snapshot ID. If this parameter is specified, the cloud disk will be created based on the snapshot. The snapshot must be a data disk snapshot. To query the type of a snapshot, call the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API and see the `DiskUsage` field in the response.public Long getDiskCount()
public void setDiskCount(Long DiskCount)
DiskCount
- Number of cloud disks to be created. If it is not specified, `1` will be used by default. There is an upper limit on the maximum number of cloud disks that can be created in a single request. For more information, see [Use Limits](https://intl.cloud.tencent.com/doc/product/362/5145?from_cn_redirect=1).public Long getThroughputPerformance()
public void setThroughputPerformance(Long ThroughputPerformance)
ThroughputPerformance
- Extra performance purchased for a cloud disk.public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize
- Cloud disk size in GB. public Boolean getShareable()
public void setShareable(Boolean Shareable)
Shareable
- Optional parameter. Default value: `False`. If `True` is specified, the new cloud disk will be shared.public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken
- A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.public String getEncrypt()
public void setEncrypt(String Encrypt)
Encrypt
- This parameter is used to create encrypted cloud disks. It is fixed at `ENCRYPT`.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 getDeleteSnapshot()
public void setDeleteSnapshot(Long DeleteSnapshot)
DeleteSnapshot
- Whether to delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk. `0`: No (default value). `1`: Yes. To check whether a snapshot is permanently reserved, see the `IsPermanent` field returned by the `DescribeSnapshots` API.public AutoMountConfiguration getAutoMountConfiguration()
public void setAutoMountConfiguration(AutoMountConfiguration AutoMountConfiguration)
AutoMountConfiguration
- Specifies whether to automatically attach and initialize the newly created data disk.public Long getDiskBackupQuota()
public void setDiskBackupQuota(Long DiskBackupQuota)
DiskBackupQuota
- Specifies the cloud disk backup point quota.Copyright © 2023. All rights reserved.