public class CreateSnapshotRequest extends AbstractModel
Constructor and Description |
---|
CreateSnapshotRequest() |
CreateSnapshotRequest(CreateSnapshotRequest 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 |
---|---|
String |
getDeadline()
Get Expiration time of the snapshot.
|
String |
getDiskBackupId()
Get ID of the cloud disk backup point.
|
String |
getDiskId()
Get ID of the cloud disk for which to create a snapshot, which can be queried through the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API.
|
String |
getSnapshotName()
Get Snapshot name.
|
Tag[] |
getTags()
Get Tags bound to the snapshot.
|
void |
setDeadline(String Deadline)
Set Expiration time of the snapshot.
|
void |
setDiskBackupId(String DiskBackupId)
Set ID of the cloud disk backup point.
|
void |
setDiskId(String DiskId)
Set ID of the cloud disk for which to create a snapshot, which can be queried through the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API.
|
void |
setSnapshotName(String SnapshotName)
Set Snapshot name.
|
void |
setTags(Tag[] Tags)
Set Tags bound to the snapshot.
|
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 CreateSnapshotRequest()
public CreateSnapshotRequest(CreateSnapshotRequest source)
public String getDiskId()
public void setDiskId(String DiskId)
DiskId
- ID of the cloud disk for which to create a snapshot, which can be queried through the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API.public String getSnapshotName()
public void setSnapshotName(String SnapshotName)
SnapshotName
- Snapshot name. If it is not specified, "Unnamed" will be used by default.public String getDeadline()
public void setDeadline(String Deadline)
Deadline
- Expiration time of the snapshot. It must be in UTC ISO-8601 format, such as 2022-01-08T09:47:55+00:00. The snapshot will be automatically deleted when it expires.public String getDiskBackupId()
public void setDiskBackupId(String DiskBackupId)
DiskBackupId
- ID of the cloud disk backup point. When this parameter is specified, the snapshot will be created from the backup point.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Tags bound to the snapshot.Copyright © 2023. All rights reserved.