com.baidubce.services.bcc.model
Class CreateCdsModel

java.lang.Object
  extended by com.baidubce.services.bcc.model.CreateCdsModel

public class CreateCdsModel
extends Object

The model which will be used in purchasing new volume.


Constructor Summary
CreateCdsModel()
           
 
Method Summary
 int getCdsSizeInGB()
           
 String getSnapshotId()
           
 String getStorageType()
           
 void setCdsSizeInGB(int cdsSizeInGB)
           
 void setSnapshotId(String snapshotId)
           
 void setStorageType(String storageType)
           
 String toString()
           
 CreateCdsModel withCdsSizeInGB(int cdsSizeInGB)
          Configure cdsSizeInGB for the model.
 CreateCdsModel withSnapshotId(String snapshotId)
          Configure snapshotId for the model.
 CreateCdsModel withStorageType(String storageType)
          Configure storageType for the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateCdsModel

public CreateCdsModel()
Method Detail

getCdsSizeInGB

public int getCdsSizeInGB()

setCdsSizeInGB

public void setCdsSizeInGB(int cdsSizeInGB)

withCdsSizeInGB

public CreateCdsModel withCdsSizeInGB(int cdsSizeInGB)
Configure cdsSizeInGB for the model.

Parameters:
cdsSizeInGB - The size of volume in GB.
Returns:
CreateCdsModel with cdsSizeInGB.

getStorageType

public String getStorageType()

setStorageType

public void setStorageType(String storageType)

withStorageType

public CreateCdsModel withStorageType(String storageType)
Configure storageType for the model.

Parameters:
storageType - The storage type of volume, see more detail in BCE API doc
Returns:
CreateCdsModel with storageType.

getSnapshotId

public String getSnapshotId()

setSnapshotId

public void setSnapshotId(String snapshotId)

withSnapshotId

public CreateCdsModel withSnapshotId(String snapshotId)
Configure snapshotId for the model.

Parameters:
snapshotId - The id of snapshot.
Returns:
CreateCdsModel with snapshotId.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.