com.baidubce.services.bcc.model.volume
Class RollbackVolumeRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bcc.model.volume.RollbackVolumeRequest

public class RollbackVolumeRequest
extends AbstractBceRequest

The request for Rolling back the specified volume.


Constructor Summary
RollbackVolumeRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RollbackVolumeRequest

public RollbackVolumeRequest()
Method Detail

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.