public class Snapshot extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
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. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Boolean | 
getCopyFromRemote()
Get Whether the snapshot is replicated across regions. 
 | 
String[] | 
getCopyingToRegions()
Get The destination region to which the snapshot is being replicated. 
 | 
String | 
getCreateTime()
Get Creation time of the snapshot. 
 | 
String | 
getDeadlineTime()
Get The expiration time of the snapshot. 
 | 
String | 
getDiskId()
Get ID of the cloud disk used to create this snapshot. 
 | 
Long | 
getDiskSize()
Get Size of the cloud disk used to create this snapshot (in GB). 
 | 
String | 
getDiskUsage()
Get The type of the cloud disk used to create the snapshot. 
 | 
Boolean | 
getEncrypt()
Get Whether the snapshot is created from an encrypted disk. 
 | 
Long | 
getImageCount()
Get Number of images associated with snapshot. 
 | 
Image[] | 
getImages()
Get List of images associated with snapshot. 
 | 
Boolean | 
getIsPermanent()
Get Whether it is a permanent snapshot. 
 | 
Long | 
getPercent()
Get The progress percentage for snapshot creation. 
 | 
Placement | 
getPlacement()
Get Location of the snapshot. 
 | 
Long | 
getShareReference()
Get Number of snapshots currently shared 
 | 
String | 
getSnapshotId()
Get Snapshot ID. 
 | 
String | 
getSnapshotName()
Get Snapshot name, the user-defined snapshot alias. 
 | 
String | 
getSnapshotState()
Get Snapshot status. 
 | 
String | 
getSnapshotType()
Get Snapshot type. 
 | 
Tag[] | 
getTags()
Get List of tags associated with the snapshot. 
 | 
String | 
getTimeStartShare()
Get The time when the snapshot sharing starts 
 | 
void | 
setCopyFromRemote(Boolean CopyFromRemote)
Set Whether the snapshot is replicated across regions. 
 | 
void | 
setCopyingToRegions(String[] CopyingToRegions)
Set The destination region to which the snapshot is being replicated. 
 | 
void | 
setCreateTime(String CreateTime)
Set Creation time of the snapshot. 
 | 
void | 
setDeadlineTime(String DeadlineTime)
Set The expiration time of the snapshot. 
 | 
void | 
setDiskId(String DiskId)
Set ID of the cloud disk used to create this snapshot. 
 | 
void | 
setDiskSize(Long DiskSize)
Set Size of the cloud disk used to create this snapshot (in GB). 
 | 
void | 
setDiskUsage(String DiskUsage)
Set The type of the cloud disk used to create the snapshot. 
 | 
void | 
setEncrypt(Boolean Encrypt)
Set Whether the snapshot is created from an encrypted disk. 
 | 
void | 
setImageCount(Long ImageCount)
Set Number of images associated with snapshot. 
 | 
void | 
setImages(Image[] Images)
Set List of images associated with snapshot. 
 | 
void | 
setIsPermanent(Boolean IsPermanent)
Set Whether it is a permanent snapshot. 
 | 
void | 
setPercent(Long Percent)
Set The progress percentage for snapshot creation. 
 | 
void | 
setPlacement(Placement Placement)
Set Location of the snapshot. 
 | 
void | 
setShareReference(Long ShareReference)
Set Number of snapshots currently shared 
 | 
void | 
setSnapshotId(String SnapshotId)
Set Snapshot ID. 
 | 
void | 
setSnapshotName(String SnapshotName)
Set Snapshot name, the user-defined snapshot alias. 
 | 
void | 
setSnapshotState(String SnapshotState)
Set Snapshot status. 
 | 
void | 
setSnapshotType(String SnapshotType)
Set Snapshot type. 
 | 
void | 
setTags(Tag[] Tags)
Set List of tags associated with the snapshot. 
 | 
void | 
setTimeStartShare(String TimeStartShare)
Set The time when the snapshot sharing starts 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Snapshot()
public Snapshot(Snapshot source)
public Placement getPlacement()
public void setPlacement(Placement Placement)
Placement - Location of the snapshot.public Boolean getCopyFromRemote()
public void setCopyFromRemote(Boolean CopyFromRemote)
CopyFromRemote - Whether the snapshot is replicated across regions. Value range: public String getSnapshotState()
public void setSnapshotState(String SnapshotState)
SnapshotState - Snapshot status. Valid values: public Boolean getIsPermanent()
public void setIsPermanent(Boolean IsPermanent)
IsPermanent - Whether it is a permanent snapshot. Value range: public String getSnapshotName()
public void setSnapshotName(String SnapshotName)
SnapshotName - Snapshot name, the user-defined snapshot alias. Call [ModifySnapshotAttribute](https://intl.cloud.tencent.com/document/product/362/15650?from_cn_redirect=1) to modify this field.public String getDeadlineTime()
public void setDeadlineTime(String DeadlineTime)
DeadlineTime - The expiration time of the snapshot. If the snapshot is permanently retained, this field is blank.public Long getPercent()
public void setPercent(Long Percent)
Percent - The progress percentage for snapshot creation. This field is always 100 after the snapshot is created successfully.public Image[] getImages()
public void setImages(Image[] Images)
Images - List of images associated with snapshot.public Long getShareReference()
public void setShareReference(Long ShareReference)
ShareReference - Number of snapshots currently sharedpublic String getSnapshotType()
public void setSnapshotType(String SnapshotType)
SnapshotType - Snapshot type. This value can currently be either PRIVATE_SNAPSHOT or SHARED_SNAPSHOT.public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize - Size of the cloud disk used to create this snapshot (in GB).public String getDiskId()
public void setDiskId(String DiskId)
DiskId - ID of the cloud disk used to create this snapshot.public String[] getCopyingToRegions()
public void setCopyingToRegions(String[] CopyingToRegions)
CopyingToRegions - The destination region to which the snapshot is being replicated. Default value is [ ].public Boolean getEncrypt()
public void setEncrypt(Boolean Encrypt)
Encrypt - Whether the snapshot is created from an encrypted disk. Value range: public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime - Creation time of the snapshot.public Long getImageCount()
public void setImageCount(Long ImageCount)
ImageCount - Number of images associated with snapshot.public String getDiskUsage()
public void setDiskUsage(String DiskUsage)
DiskUsage - The type of the cloud disk used to create the snapshot. Value range: public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId - Snapshot ID.public String getTimeStartShare()
public void setTimeStartShare(String TimeStartShare)
TimeStartShare - The time when the snapshot sharing startspublic Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - List of tags associated with the snapshot.Copyright © 2025. All rights reserved.