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 |
getDiskId()
Get ID of the cloud disk, for which a snapshot needs to be created.
|
String |
getSnapshotName()
Get Snapshot name.
|
void |
setDeadline(String Deadline)
Set Expiration time of the snapshot.
|
void |
setDiskId(String DiskId)
Set ID of the cloud disk, for which a snapshot needs to be created.
|
void |
setSnapshotName(String SnapshotName)
Set Snapshot name.
|
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 a snapshot needs to be created. It can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).public String getSnapshotName()
public void setSnapshotName(String SnapshotName)
SnapshotName
- Snapshot name. If it is left empty, the new snapshot name is "Not named" by default.public String getDeadline()
public void setDeadline(String Deadline)
Deadline
- Expiration time of the snapshot. The snapshot will be automatically deleted upon expiration.Copyright © 2021. All rights reserved.