com.baidubce.services.bcc.model.volume
Class RollbackVolumeRequest
java.lang.Object
com.baidubce.model.AbstractBceRequest
com.baidubce.services.bcc.model.volume.RollbackVolumeRequest
public class RollbackVolumeRequest
- extends AbstractBceRequest
The request for Rolling back the specified volume.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RollbackVolumeRequest
public RollbackVolumeRequest()
getVolumeId
public String getVolumeId()
setVolumeId
public void setVolumeId(String volumeId)
withVolumeId
public RollbackVolumeRequest withVolumeId(String volumeId)
- Configure volumeId for the request.
- Parameters:
volumeId
- The id of volume which will be rolled back.
- Returns:
- RollbackVolumeRequest with volumeId.
getSnapshotId
public String getSnapshotId()
setSnapshotId
public void setSnapshotId(String snapshotId)
withSnapshotId
public RollbackVolumeRequest withSnapshotId(String snapshotId)
- Configure snapshotId for the request.
- Parameters:
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.
- Returns:
- RollbackVolumeRequest with snapshotId.
withRequestCredentials
public RollbackVolumeRequest withRequestCredentials(BceCredentials credentials)
- Configure request credential for the request.
- Specified by:
withRequestCredentials
in class AbstractBceRequest
- Parameters:
credentials
- a valid instance of BceCredentials.
- Returns:
- RollbackVolumeRequest with credentials.
Copyright © 2018. All rights reserved.