类 CreateCdsModel


  • public class CreateCdsModel
    extends Object
    The model which will be used in purchasing new volume.
    • 构造器详细资料

      • CreateCdsModel

        public CreateCdsModel()
    • 方法详细资料

      • getCdsSizeInGB

        public int getCdsSizeInGB()
      • setCdsSizeInGB

        public void setCdsSizeInGB​(int cdsSizeInGB)
      • withCdsSizeInGB

        public CreateCdsModel withCdsSizeInGB​(int cdsSizeInGB)
        Configure cdsSizeInGB for the model.
        参数:
        cdsSizeInGB - The size of volume in GB.
        返回:
        CreateCdsModel with cdsSizeInGB.
      • getStorageType

        public String getStorageType()
      • setStorageType

        public void setStorageType​(String storageType)
      • withStorageType

        public CreateCdsModel withStorageType​(String storageType)
        Configure storageType for the model.
        参数:
        storageType - The storage type of volume, see more detail in BCE API doc
        返回:
        CreateCdsModel with storageType.
      • getSnapshotId

        public String getSnapshotId()
      • setSnapshotId

        public void setSnapshotId​(String snapshotId)
      • withSnapshotId

        public CreateCdsModel withSnapshotId​(String snapshotId)
        Configure snapshotId for the model.
        参数:
        snapshotId - The id of snapshot.
        返回:
        CreateCdsModel with snapshotId.
      • getEncryptKey

        public String getEncryptKey()
      • setEncryptKey

        public void setEncryptKey​(String encryptKey)
      • withEncryptKey

        public CreateCdsModel withEncryptKey​(String encryptKey)
        Configure encryptKey for the model.
        参数:
        encryptKey - encryption key
        返回:
        CreateCdsModel with encryptKey.