public class Disk extends AbstractModel
Constructor and Description |
---|
Disk() |
Disk(Disk 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 |
---|---|
Boolean |
getAttached()
Get Whether the cloud disk is mounted to the CVM.
|
String |
getAttachMode()
Get Cloud disk mount method.
|
Boolean |
getAutoRenewFlagError()
Get Cloud disk already mounted to CVM, and both CVM and cloud disk use monthly subscription.
true: CVM has auto-renewal flag set up, but cloud disk does not. false: Cloud disk auto-renewal flag set up normally. |
String[] |
getAutoSnapshotPolicyIds()
Get ID of the periodic snapshot associated to the cloud disk.
|
Boolean |
getBackupDisk()
Get Specifies whether to create a snapshot when the cloud disk is terminated due to overdue payment or expiration.
|
String |
getCreateTime()
Get Creation time of the cloud disk.
|
Boolean |
getDeadlineError()
Get This field is only applicable when the instance is already mounted to the cloud disk, and both the instance and the cloud disk use monthly subscription.
|
String |
getDeadlineTime()
Get Expiration time of the cloud disk.
|
Long |
getDeleteSnapshot()
Get Delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk.
|
Boolean |
getDeleteWithInstance()
Get Whether the cloud disk terminates along with the instance mounted to it.
|
Long |
getDifferDaysOfDeadline()
Get Number of days from current time until disk expiration (only applicable for prepaid disks).
|
Long |
getDiskBackupCount()
Get Number of used cloud disk backups.
|
Long |
getDiskBackupQuota()
Get Quota of cloud disk backup points, i.e., the maximum number of backup points that a cloud disk can have.
|
String |
getDiskChargeType()
Get Billing method.
|
String |
getDiskId()
Get Cloud disk ID.
|
String |
getDiskName()
Get Cloud disk name.
|
Long |
getDiskSize()
Get Cloud disk size (in GB).
|
String |
getDiskState()
Get The state of the cloud disk.
|
String |
getDiskType()
Get Cloud disk types.
|
String |
getDiskUsage()
Get Cloud disk type.
|
Boolean |
getEncrypt()
Get Whether the cloud disk is encrypted.
|
String |
getErrorPrompt()
Get Error message for the last operation of the cloud disk
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getInstanceId()
Get ID of the CVM to which the cloud disk is mounted.
|
String[] |
getInstanceIdList()
Get For non-shareable cloud disks, this parameter is null.
|
String |
getInstanceType()
Get Type of the instance mounted to the cloud disk.
|
Boolean |
getIsReturnable()
Get Determines whether or not prepaid cloud disk supports active return.
|
String |
getLastAttachInsId()
Get ID of the last instance to which the cloud disk is attached
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getMigratePercent()
Get Migration progress of cloud disk type change, from 0 to 100.
|
Boolean |
getMigrating()
Get Whether cloud disk is in process of type change.
|
Placement |
getPlacement()
Get Location of the cloud disk.
|
Boolean |
getPortable()
Get Whether it is an elastic cloud disk.
|
String |
getRenewFlag()
Get Auto renewal flag.
|
Long |
getReturnFailCode()
Get In circumstances where the prepaid cloud disk does not support active return, this parameter indicates the reason that return is not supported.
|
Boolean |
getRollbacking()
Get Whether the cloud disk is in the status of snapshot rollback.
|
Long |
getRollbackPercent()
Get Rollback progress of a cloud disk snapshot.
|
Boolean |
getShareable()
Get Whether or not cloud disk is shareable cloud disk.
|
Boolean |
getSnapshotAbility()
Get Whether the cloud disk has the capability to create snapshots.
|
Long |
getSnapshotCount()
Get The total number of snapshots of the cloud disk.
|
Long |
getSnapshotSize()
Get The total capacity of the snapshots of the cloud disk.
|
Tag[] |
getTags()
Get The tag bound to the cloud disk.
|
Long |
getThroughputPerformance()
Get Extra performance for a cloud disk, in MB/sec.
|
void |
setAttached(Boolean Attached)
Set Whether the cloud disk is mounted to the CVM.
|
void |
setAttachMode(String AttachMode)
Set Cloud disk mount method.
|
void |
setAutoRenewFlagError(Boolean AutoRenewFlagError)
Set Cloud disk already mounted to CVM, and both CVM and cloud disk use monthly subscription.
true: CVM has auto-renewal flag set up, but cloud disk does not. false: Cloud disk auto-renewal flag set up normally. |
void |
setAutoSnapshotPolicyIds(String[] AutoSnapshotPolicyIds)
Set ID of the periodic snapshot associated to the cloud disk.
|
void |
setBackupDisk(Boolean BackupDisk)
Set Specifies whether to create a snapshot when the cloud disk is terminated due to overdue payment or expiration.
|
void |
setCreateTime(String CreateTime)
Set Creation time of the cloud disk.
|
void |
setDeadlineError(Boolean DeadlineError)
Set This field is only applicable when the instance is already mounted to the cloud disk, and both the instance and the cloud disk use monthly subscription.
|
void |
setDeadlineTime(String DeadlineTime)
Set Expiration time of the cloud disk.
|
void |
setDeleteSnapshot(Long DeleteSnapshot)
Set Delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk.
|
void |
setDeleteWithInstance(Boolean DeleteWithInstance)
Set Whether the cloud disk terminates along with the instance mounted to it.
|
void |
setDifferDaysOfDeadline(Long DifferDaysOfDeadline)
Set Number of days from current time until disk expiration (only applicable for prepaid disks).
|
void |
setDiskBackupCount(Long DiskBackupCount)
Set Number of used cloud disk backups.
|
void |
setDiskBackupQuota(Long DiskBackupQuota)
Set Quota of cloud disk backup points, i.e., the maximum number of backup points that a cloud disk can have.
|
void |
setDiskChargeType(String DiskChargeType)
Set Billing method.
|
void |
setDiskId(String DiskId)
Set Cloud disk ID.
|
void |
setDiskName(String DiskName)
Set Cloud disk name.
|
void |
setDiskSize(Long DiskSize)
Set Cloud disk size (in GB).
|
void |
setDiskState(String DiskState)
Set The state of the cloud disk.
|
void |
setDiskType(String DiskType)
Set Cloud disk types.
|
void |
setDiskUsage(String DiskUsage)
Set Cloud disk type.
|
void |
setEncrypt(Boolean Encrypt)
Set Whether the cloud disk is encrypted.
|
void |
setErrorPrompt(String ErrorPrompt)
Set Error message for the last operation of the cloud disk
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setInstanceId(String InstanceId)
Set ID of the CVM to which the cloud disk is mounted.
|
void |
setInstanceIdList(String[] InstanceIdList)
Set For non-shareable cloud disks, this parameter is null.
|
void |
setInstanceType(String InstanceType)
Set Type of the instance mounted to the cloud disk.
|
void |
setIsReturnable(Boolean IsReturnable)
Set Determines whether or not prepaid cloud disk supports active return.
|
void |
setLastAttachInsId(String LastAttachInsId)
Set ID of the last instance to which the cloud disk is attached
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setMigratePercent(Long MigratePercent)
Set Migration progress of cloud disk type change, from 0 to 100.
|
void |
setMigrating(Boolean Migrating)
Set Whether cloud disk is in process of type change.
|
void |
setPlacement(Placement Placement)
Set Location of the cloud disk.
|
void |
setPortable(Boolean Portable)
Set Whether it is an elastic cloud disk.
|
void |
setRenewFlag(String RenewFlag)
Set Auto renewal flag.
|
void |
setReturnFailCode(Long ReturnFailCode)
Set In circumstances where the prepaid cloud disk does not support active return, this parameter indicates the reason that return is not supported.
|
void |
setRollbacking(Boolean Rollbacking)
Set Whether the cloud disk is in the status of snapshot rollback.
|
void |
setRollbackPercent(Long RollbackPercent)
Set Rollback progress of a cloud disk snapshot.
|
void |
setShareable(Boolean Shareable)
Set Whether or not cloud disk is shareable cloud disk.
|
void |
setSnapshotAbility(Boolean SnapshotAbility)
Set Whether the cloud disk has the capability to create snapshots.
|
void |
setSnapshotCount(Long SnapshotCount)
Set The total number of snapshots of the cloud disk.
|
void |
setSnapshotSize(Long SnapshotSize)
Set The total capacity of the snapshots of the cloud disk.
|
void |
setTags(Tag[] Tags)
Set The tag bound to the cloud disk.
|
void |
setThroughputPerformance(Long ThroughputPerformance)
Set Extra performance for a cloud disk, in MB/sec.
|
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 Disk()
public Disk(Disk source)
public Boolean getDeleteWithInstance()
public void setDeleteWithInstance(Boolean DeleteWithInstance)
DeleteWithInstance
- Whether the cloud disk terminates along with the instance mounted to it. public String getRenewFlag()
public void setRenewFlag(String RenewFlag)
RenewFlag
- Auto renewal flag. Supported values:public String getDiskType()
public void setDiskType(String DiskType)
DiskType
- Cloud disk types. Valid values: public String getDiskState()
public void setDiskState(String DiskState)
DiskState
- The state of the cloud disk. Value range: public Long getSnapshotCount()
public void setSnapshotCount(Long SnapshotCount)
SnapshotCount
- The total number of snapshots of the cloud disk.public Boolean getAutoRenewFlagError()
public void setAutoRenewFlagError(Boolean AutoRenewFlagError)
AutoRenewFlagError
- Cloud disk already mounted to CVM, and both CVM and cloud disk use monthly subscription.public Boolean getRollbacking()
public void setRollbacking(Boolean Rollbacking)
Rollbacking
- Whether the cloud disk is in the status of snapshot rollback. Value range: public String[] getInstanceIdList()
public void setInstanceIdList(String[] InstanceIdList)
InstanceIdList
- For non-shareable cloud disks, this parameter is null. For shareable cloud disks, this parameters indicates this cloud disk's Instance IDs currently mounted to the CVM.public Boolean getEncrypt()
public void setEncrypt(Boolean Encrypt)
Encrypt
- Whether the cloud disk is encrypted. Value range: public String getDiskName()
public void setDiskName(String DiskName)
DiskName
- Cloud disk name.public Boolean getBackupDisk()
public void setBackupDisk(Boolean BackupDisk)
BackupDisk
- Specifies whether to create a snapshot when the cloud disk is terminated due to overdue payment or expiration. `true`: create snapshot; `false`: do not create snapshot.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- The tag bound to the cloud disk. The value Null is used when no tag is bound to the cloud disk.
Note: This field may return null, indicating that no valid value was found.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the CVM to which the cloud disk is mounted.public String getAttachMode()
public void setAttachMode(String AttachMode)
AttachMode
- Cloud disk mount method. Valid values: public String[] getAutoSnapshotPolicyIds()
public void setAutoSnapshotPolicyIds(String[] AutoSnapshotPolicyIds)
AutoSnapshotPolicyIds
- ID of the periodic snapshot associated to the cloud disk. This parameter is returned only if the value of parameter ReturnBindAutoSnapshotPolicy is TRUE when the API DescribeDisks is called.
Note: This field may return null, indicating that no valid value was found.public Long getThroughputPerformance()
public void setThroughputPerformance(Long ThroughputPerformance)
ThroughputPerformance
- Extra performance for a cloud disk, in MB/sec.
Note: this field may return `null`, indicating that no valid values can be obtained.public Boolean getMigrating()
public void setMigrating(Boolean Migrating)
Migrating
- Whether cloud disk is in process of type change. Value range: public String getDiskId()
public void setDiskId(String DiskId)
DiskId
- Cloud disk ID.public Long getSnapshotSize()
public void setSnapshotSize(Long SnapshotSize)
SnapshotSize
- The total capacity of the snapshots of the cloud disk. Unit: MB.public Placement getPlacement()
public void setPlacement(Placement Placement)
Placement
- Location of the cloud disk.public Boolean getIsReturnable()
public void setIsReturnable(Boolean IsReturnable)
IsReturnable
- Determines whether or not prepaid cloud disk supports active return. public String getDeadlineTime()
public void setDeadlineTime(String DeadlineTime)
DeadlineTime
- Expiration time of the cloud disk.public Boolean getAttached()
public void setAttached(Boolean Attached)
Attached
- Whether the cloud disk is mounted to the CVM. Value range: public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize
- Cloud disk size (in GB).public Long getMigratePercent()
public void setMigratePercent(Long MigratePercent)
MigratePercent
- Migration progress of cloud disk type change, from 0 to 100.
Note: This field may return null, indicating that no valid value was found.public String getDiskUsage()
public void setDiskUsage(String DiskUsage)
DiskUsage
- Cloud disk type. Value range:public String getDiskChargeType()
public void setDiskChargeType(String DiskChargeType)
DiskChargeType
- Billing method. Value range: public Boolean getPortable()
public void setPortable(Boolean Portable)
Portable
- Whether it is an elastic cloud disk. false: Non-elastic cloud disk; true: Elastic cloud disk.public Boolean getSnapshotAbility()
public void setSnapshotAbility(Boolean SnapshotAbility)
SnapshotAbility
- Whether the cloud disk has the capability to create snapshots. Value range: public Boolean getDeadlineError()
public void setDeadlineError(Boolean DeadlineError)
DeadlineError
- This field is only applicable when the instance is already mounted to the cloud disk, and both the instance and the cloud disk use monthly subscription. public Long getRollbackPercent()
public void setRollbackPercent(Long RollbackPercent)
RollbackPercent
- Rollback progress of a cloud disk snapshot.public Long getDifferDaysOfDeadline()
public void setDifferDaysOfDeadline(Long DifferDaysOfDeadline)
DifferDaysOfDeadline
- Number of days from current time until disk expiration (only applicable for prepaid disks).
Note: This field may return null, indicating that no valid value was found.public Long getReturnFailCode()
public void setReturnFailCode(Long ReturnFailCode)
ReturnFailCode
- In circumstances where the prepaid cloud disk does not support active return, this parameter indicates the reason that return is not supported. Value range: public Boolean getShareable()
public void setShareable(Boolean Shareable)
Shareable
- Whether or not cloud disk is shareable cloud disk.public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Creation time of the cloud disk.public Long getDeleteSnapshot()
public void setDeleteSnapshot(Long DeleteSnapshot)
DeleteSnapshot
- Delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk. `0`: No (default). `1`: Yes. To check whether a snapshot is permanently reserved, refer to the `IsPermanent` field returned by the `DescribeSnapshots` API.public Long getDiskBackupQuota()
public void setDiskBackupQuota(Long DiskBackupQuota)
DiskBackupQuota
- Quota of cloud disk backup points, i.e., the maximum number of backup points that a cloud disk can have.public Long getDiskBackupCount()
public void setDiskBackupCount(Long DiskBackupCount)
DiskBackupCount
- Number of used cloud disk backups.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType
- Type of the instance mounted to the cloud disk. Valid values: public String getLastAttachInsId()
public void setLastAttachInsId(String LastAttachInsId)
LastAttachInsId
- ID of the last instance to which the cloud disk is attached
Note: This field may return null, indicating that no valid values can be obtained.public String getErrorPrompt()
public void setErrorPrompt(String ErrorPrompt)
ErrorPrompt
- Error message for the last operation of the cloud disk
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.