类 CreateSnapshotRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bcc.model.snapshot.CreateSnapshotRequest
-
public class CreateSnapshotRequest extends AbstractBceRequest
The request for creating a new snapshot.
-
-
构造器概要
构造器 构造器 说明 CreateSnapshotRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetClientToken()StringgetDesc()StringgetSnapshotName()StringgetVolumeId()voidsetClientToken(String clientToken)voidsetDesc(String desc)voidsetSnapshotName(String snapshotName)voidsetVolumeId(String volumeId)CreateSnapshotRequestwithClientToken(String clientToken)Configure optional client token for the request.CreateSnapshotRequestwithDesc(String desc)Configure desc for the request.CreateSnapshotRequestwithRequestCredentials(BceCredentials credentials)Configure request credential for the request.CreateSnapshotRequestwithSnapshotName(String snapshotName)Configure snapshotName for the request.CreateSnapshotRequestwithVolumeId(String volumeId)Configure volumeId for the request.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
getClientToken
public String getClientToken()
-
setClientToken
public void setClientToken(String clientToken)
-
withClientToken
public CreateSnapshotRequest withClientToken(String clientToken)
Configure optional client token for the request. The request will be idempotent if client token is provided. If the clientToken is not specified by the user, a random String generated by default algorithm will be used.- 参数:
clientToken- An ASCII string whose length is less than 64. See more detail at BCE API doc- 返回:
- CreateSnapshotRequest with specific clientToken
-
getVolumeId
public String getVolumeId()
-
setVolumeId
public void setVolumeId(String volumeId)
-
withVolumeId
public CreateSnapshotRequest withVolumeId(String volumeId)
Configure volumeId for the request.- 参数:
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.- 返回:
- CreateSnapshotRequest with volumeId.
-
getSnapshotName
public String getSnapshotName()
-
setSnapshotName
public void setSnapshotName(String snapshotName)
-
withSnapshotName
public CreateSnapshotRequest withSnapshotName(String snapshotName)
Configure snapshotName for the request.- 参数:
snapshotName- The name for the snapshot that will be created. The name length from 1 to 65,only contains letters,digital and underline.- 返回:
- CreateSnapshotRequest with snapshotName.
-
getDesc
public String getDesc()
-
setDesc
public void setDesc(String desc)
-
withDesc
public CreateSnapshotRequest withDesc(String desc)
Configure desc for the request.- 参数:
desc- The optional parameter to describe the information of the new snapshot.- 返回:
- CreateSnapshotRequest with desc.
-
withRequestCredentials
public CreateSnapshotRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- CreateSnapshotRequest with credentials.
-
-