类 CreateCdsModel
- java.lang.Object
-
- com.baidubce.services.bcc.model.CreateCdsModel
-
public class CreateCdsModel extends Object
The model which will be used in purchasing new volume.
-
-
构造器概要
构造器 构造器 说明 CreateCdsModel()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetCdsSizeInGB()StringgetEncryptKey()StringgetSnapshotId()StringgetStorageType()voidsetCdsSizeInGB(int cdsSizeInGB)voidsetEncryptKey(String encryptKey)voidsetSnapshotId(String snapshotId)voidsetStorageType(String storageType)StringtoString()CreateCdsModelwithCdsSizeInGB(int cdsSizeInGB)Configure cdsSizeInGB for the model.CreateCdsModelwithEncryptKey(String encryptKey)Configure encryptKey for the model.CreateCdsModelwithSnapshotId(String snapshotId)Configure snapshotId for the model.CreateCdsModelwithStorageType(String storageType)Configure storageType for the model.
-
-
-
方法详细资料
-
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.
-
-