public class RollbackVolumeRequest extends AbstractBceRequest
| Constructor and Description |
|---|
RollbackVolumeRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getSnapshotId() |
String |
getVolumeId() |
void |
setSnapshotId(String snapshotId) |
void |
setVolumeId(String volumeId) |
RollbackVolumeRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.
|
RollbackVolumeRequest |
withSnapshotId(String snapshotId)
Configure snapshotId for the request.
|
RollbackVolumeRequest |
withVolumeId(String volumeId)
Configure volumeId for the request.
|
getRequestCredentials, setRequestCredentialspublic String getVolumeId()
public void setVolumeId(String volumeId)
public RollbackVolumeRequest withVolumeId(String volumeId)
volumeId - The id of volume which will be rolled back.public String getSnapshotId()
public void setSnapshotId(String snapshotId)
public RollbackVolumeRequest withSnapshotId(String snapshotId)
snapshotId - The id which specify where the volume will be rolled back from.
If you want to rollback the volume from a customized volume,a id of the volume will be set.
If you want to rollback the volume from a system volume,a id of the instance will be set.public RollbackVolumeRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.Copyright © 2022. All rights reserved.