public class Snapshot extends AbstractModel
| 构造器和说明 | 
|---|
| Snapshot() | 
| Snapshot(Snapshot 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. | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| String | getCreatedTime()Get Snapshot creation time. | 
| String | getDiskId()Get ID of the disk for which the snapshot is created. | 
| Long | getDiskSize()Get Size of the disk in GB for which the snapshot is created. | 
| String | getDiskUsage()Get Type of the disk for which the snapshot is created. | 
| String | getLatestOperation()Get Last snapshot operation. | 
| String | getLatestOperationRequestId()Get Unique request ID for the last snapshot operation. | 
| String | getLatestOperationState()Get Last snapshot operation status. | 
| Long | getPercent()Get Snapshot creation or rollback progress in percentage. | 
| String | getSnapshotId()Get Snapshot ID. | 
| String | getSnapshotName()Get Snapshot name, which is a custom snapshot alias. | 
| String | getSnapshotState()Get Snapshot status. | 
| void | setCreatedTime(String CreatedTime)Set Snapshot creation time. | 
| void | setDiskId(String DiskId)Set ID of the disk for which the snapshot is created. | 
| void | setDiskSize(Long DiskSize)Set Size of the disk in GB for which the snapshot is created. | 
| void | setDiskUsage(String DiskUsage)Set Type of the disk for which the snapshot is created. | 
| void | setLatestOperation(String LatestOperation)Set Last snapshot operation. | 
| void | setLatestOperationRequestId(String LatestOperationRequestId)Set Unique request ID for the last snapshot operation. | 
| void | setLatestOperationState(String LatestOperationState)Set Last snapshot operation status. | 
| void | setPercent(Long Percent)Set Snapshot creation or rollback progress in percentage. | 
| void | setSnapshotId(String SnapshotId)Set Snapshot ID. | 
| void | setSnapshotName(String SnapshotName)Set Snapshot name, which is a custom snapshot alias. | 
| void | setSnapshotState(String SnapshotState)Set Snapshot status. | 
| 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, toJsonStringpublic Snapshot()
public Snapshot(Snapshot source)
public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId - Snapshot ID.public String getDiskUsage()
public void setDiskUsage(String DiskUsage)
DiskUsage - Type of the disk for which the snapshot is created. Valid values: public String getDiskId()
public void setDiskId(String DiskId)
DiskId - ID of the disk for which the snapshot is created.public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize - Size of the disk in GB for which the snapshot is created.public String getSnapshotName()
public void setSnapshotName(String SnapshotName)
SnapshotName - Snapshot name, which is a custom snapshot alias.public String getSnapshotState()
public void setSnapshotState(String SnapshotState)
SnapshotState - Snapshot status. Valid values:
public Long getPercent()
public void setPercent(Long Percent)
Percent - Snapshot creation or rollback progress in percentage. After success, the value of this field will become 100.public String getLatestOperation()
public void setLatestOperation(String LatestOperation)
LatestOperation - Last snapshot operation. It is recorded only during snapshot creation and rollback.
Example values: CreateInstanceSnapshot, RollbackInstanceSnapshot.
Note: this field may return null, indicating that no valid values can be obtained.public String getLatestOperationState()
public void setLatestOperationState(String LatestOperationState)
LatestOperationState - Last snapshot operation status. It is recorded only during snapshot creation and rollback.
Valid values:
public String getLatestOperationRequestId()
public void setLatestOperationRequestId(String LatestOperationRequestId)
LatestOperationRequestId - Unique request ID for the last snapshot operation. It is recorded only during snapshot creation and rollback.
Note: this field may return null, indicating that no valid values can be obtained.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - Snapshot creation time.Copyright © 2022. All rights reserved.