类 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.
-
-
构造器概要
构造器 构造器 说明 RollbackVolumeRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetSnapshotId()StringgetVolumeId()voidsetSnapshotId(String snapshotId)voidsetVolumeId(String volumeId)RollbackVolumeRequestwithRequestCredentials(BceCredentials credentials)Configure request credential for the request.RollbackVolumeRequestwithSnapshotId(String snapshotId)Configure snapshotId for the request.RollbackVolumeRequestwithVolumeId(String volumeId)Configure volumeId for the request.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
getVolumeId
public String getVolumeId()
-
setVolumeId
public void setVolumeId(String volumeId)
-
withVolumeId
public RollbackVolumeRequest withVolumeId(String volumeId)
Configure volumeId for the request.- 参数:
volumeId- The id of volume which will be rolled back.- 返回:
- RollbackVolumeRequest with volumeId.
-
getSnapshotId
public String getSnapshotId()
-
setSnapshotId
public void setSnapshotId(String snapshotId)
-
withSnapshotId
public RollbackVolumeRequest withSnapshotId(String snapshotId)
Configure snapshotId for the request.- 参数:
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.- 返回:
- RollbackVolumeRequest with snapshotId.
-
withRequestCredentials
public RollbackVolumeRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- RollbackVolumeRequest with credentials.
-
-