类 CreateSnapshotRequest


  • public class CreateSnapshotRequest
    extends AbstractBceRequest
    The request for creating a new snapshot.
    • 构造器详细资料

      • CreateSnapshotRequest

        public CreateSnapshotRequest()
    • 方法详细资料

      • 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.