|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bcc.model.volume.CreateVolumeRequest
public class CreateVolumeRequest
The request for creating a new volume.
Constructor Summary | |
---|---|
CreateVolumeRequest()
|
Method Summary | |
---|---|
Billing |
getBilling()
|
int |
getCdsSizeInGB()
|
String |
getClientToken()
|
int |
getPurchaseCount()
|
String |
getSnapshotId()
|
String |
getStorageType()
|
String |
getZoneName()
|
void |
setBilling(Billing billing)
|
void |
setCdsSizeInGB(int cdsSizeInGB)
|
void |
setClientToken(String clientToken)
|
void |
setPurchaseCount(int purchaseCount)
|
void |
setSnapshotId(String snapshotId)
|
void |
setStorageType(String storageType)
|
void |
setZoneName(String zoneName)
|
CreateVolumeRequest |
withBilling(Billing billing)
Configure billing for the request. |
CreateVolumeRequest |
withCdsSizeInGB(int cdsSizeInGB)
Configure cdsSizeInGB for the request. |
CreateVolumeRequest |
withClientToken(String clientToken)
Configure optional client token for the request. |
CreateVolumeRequest |
withPurchaseCount(int purchaseCount)
Configure purchaseCount for the request. |
CreateVolumeRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request. |
CreateVolumeRequest |
withSnapshotId(String snapshotId)
Configure snapshotId for the request. |
CreateVolumeRequest |
withStorageType(String storageType)
Configure storageType for the request. |
CreateVolumeRequest |
withZoneName(String zoneName)
|
Methods inherited from class com.baidubce.model.AbstractBceRequest |
---|
getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateVolumeRequest()
Method Detail |
---|
public String getClientToken()
public void setClientToken(String clientToken)
public CreateVolumeRequest withClientToken(String clientToken)
clientToken
- An ASCII string whose length is less than 64.
See more detail at
BCE API doc
public int getPurchaseCount()
public void setPurchaseCount(int purchaseCount)
public CreateVolumeRequest withPurchaseCount(int purchaseCount)
purchaseCount
- The number of volume to buy, the default value is 1.
public int getCdsSizeInGB()
public void setCdsSizeInGB(int cdsSizeInGB)
public CreateVolumeRequest withCdsSizeInGB(int cdsSizeInGB)
cdsSizeInGB
- The size of volume to create in GB. By specifying the snapshotId,
it will create volume from the specified snapshot and the parameter cdsSizeInGB will be ignored.
public String getStorageType()
public void setStorageType(String storageType)
public CreateVolumeRequest withStorageType(String storageType)
storageType
- The storage type of volume, see more detail in
BCE API doc
public Billing getBilling()
public void setBilling(Billing billing)
public CreateVolumeRequest withBilling(Billing billing)
billing
- The detail model to specify the billing.
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
public CreateVolumeRequest withSnapshotId(String snapshotId)
snapshotId
- The id of snapshot.By specifying the snapshotId,
it will create volume from the specified snapshot and the parameter cdsSizeInGB will be ignored.
public String getZoneName()
public void setZoneName(String zoneName)
public CreateVolumeRequest withZoneName(String zoneName)
public CreateVolumeRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
credentials
- a valid instance of BceCredentials.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |