public class CreateSnapshotRequest extends AbstractBceRequest
| Constructor and Description |
|---|
CreateSnapshotRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientToken() |
String |
getDesc() |
String |
getSnapshotName() |
String |
getVolumeId() |
void |
setClientToken(String clientToken) |
void |
setDesc(String desc) |
void |
setSnapshotName(String snapshotName) |
void |
setVolumeId(String volumeId) |
CreateSnapshotRequest |
withClientToken(String clientToken)
Configure optional client token for the request.
|
CreateSnapshotRequest |
withDesc(String desc)
Configure desc for the request.
|
CreateSnapshotRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.
|
CreateSnapshotRequest |
withSnapshotName(String snapshotName)
Configure snapshotName for the request.
|
CreateSnapshotRequest |
withVolumeId(String volumeId)
Configure volumeId for the request.
|
getRequestCredentials, setRequestCredentialspublic String getClientToken()
public void setClientToken(String clientToken)
public CreateSnapshotRequest withClientToken(String clientToken)
clientToken - An ASCII string whose length is less than 64.
See more detail at
BCE API docpublic String getVolumeId()
public void setVolumeId(String volumeId)
public CreateSnapshotRequest withVolumeId(String volumeId)
volumeId - The id which specify where the snapshot will be created from.
If you want to create an snapshot from a customized volume,a id of the volume will be set.
If you want to create an snapshot from a system volume,a id of the instance will be set.public String getSnapshotName()
public void setSnapshotName(String snapshotName)
public CreateSnapshotRequest withSnapshotName(String snapshotName)
snapshotName - The name for the snapshot that will be created.
The name length from 1 to 65,only contains letters,digital and underline.public String getDesc()
public void setDesc(String desc)
public CreateSnapshotRequest withDesc(String desc)
desc - The optional parameter to describe the information of the new snapshot.public CreateSnapshotRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.Copyright © 2022. All rights reserved.