public class Disk extends AbstractModel
Constructor and Description |
---|
Disk() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getAttached()
Get Whether the cloud disk is mounted to the CVM.
|
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 Indicates whether a snapshot should be created for backup when the cloud disk is terminated due to arrears 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.
|
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).
|
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 Type of cloud disk medium.
|
String |
getDiskUsage()
Get Cloud disk type.
|
Boolean |
getEncrypt()
Get Whether the cloud disk is encrypted.
|
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.
|
Boolean |
getIsReturnable()
Get Determines whether or not prepaid cloud disk supports active return.
|
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.
|
void |
setAttached(Boolean Attached)
Set Whether the cloud disk is mounted to the CVM.
|
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 Indicates whether a snapshot should be created for backup when the cloud disk is terminated due to arrears 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 |
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 |
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 Type of cloud disk medium.
|
void |
setDiskUsage(String DiskUsage)
Set Cloud disk type.
|
void |
setEncrypt(Boolean Encrypt)
Set Whether the cloud disk is encrypted.
|
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 |
setIsReturnable(Boolean IsReturnable)
Set Determines whether or not prepaid cloud disk supports active return.
|
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 |
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 getDiskId()
public void setDiskId(String DiskId)
DiskId
- Cloud disk ID.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 Placement getPlacement()
public void setPlacement(Placement Placement)
Placement
- Location of the cloud disk.public Boolean getSnapshotAbility()
public void setSnapshotAbility(Boolean SnapshotAbility)
SnapshotAbility
- Whether the cloud disk has the capability to create snapshots. Value range: public String getDiskName()
public void setDiskName(String DiskName)
DiskName
- Cloud disk name.public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize
- Cloud disk size (in GB).public String getDiskState()
public void setDiskState(String DiskState)
DiskState
- The state of the cloud disk. Value range: public String getDiskType()
public void setDiskType(String DiskType)
DiskType
- Type of cloud disk medium. Value range: public Boolean getAttached()
public void setAttached(Boolean Attached)
Attached
- Whether the cloud disk is mounted to the CVM. Value range: public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the CVM to which the cloud disk is mounted.public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Creation time of the cloud disk.public String getDeadlineTime()
public void setDeadlineTime(String DeadlineTime)
DeadlineTime
- Expiration time of the cloud disk.public Boolean getRollbacking()
public void setRollbacking(Boolean Rollbacking)
Rollbacking
- Whether the cloud disk is in the status of snapshot rollback. Value range: public Long getRollbackPercent()
public void setRollbackPercent(Long RollbackPercent)
RollbackPercent
- Rollback progress of a cloud disk snapshot.public Boolean getEncrypt()
public void setEncrypt(Boolean Encrypt)
Encrypt
- Whether the cloud disk is encrypted. Value range: 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 String getRenewFlag()
public void setRenewFlag(String RenewFlag)
RenewFlag
- Auto renewal flag. Supported values: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 Boolean getIsReturnable()
public void setIsReturnable(Boolean IsReturnable)
IsReturnable
- Determines whether or not prepaid cloud disk supports active return. 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 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 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 Boolean getDeleteWithInstance()
public void setDeleteWithInstance(Boolean DeleteWithInstance)
DeleteWithInstance
- Whether the cloud disk terminates along with the instance mounted to it. 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 Boolean getMigrating()
public void setMigrating(Boolean Migrating)
Migrating
- Whether cloud disk is in process of type change. Value range: 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 Boolean getShareable()
public void setShareable(Boolean Shareable)
Shareable
- Whether or not cloud disk is shareable cloud disk.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 Long getSnapshotCount()
public void setSnapshotCount(Long SnapshotCount)
SnapshotCount
- The total number of snapshots of the cloud disk.public Long getSnapshotSize()
public void setSnapshotSize(Long SnapshotSize)
SnapshotSize
- The total capacity of the snapshots of the cloud disk. Unit: MB.public Boolean getBackupDisk()
public void setBackupDisk(Boolean BackupDisk)
BackupDisk
- Indicates whether a snapshot should be created for backup when the cloud disk is terminated due to arrears or expiration. `True`: create a snapshot to backup the disk upon termination. `False`: terminate the disk without backupCopyright © 2020. All rights reserved.