public class CreateVolumeRequest extends AbstractBceRequest
| Constructor and Description |
|---|
CreateVolumeRequest() |
| Modifier and Type | Method and Description |
|---|---|
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) |
getRequestCredentials, setRequestCredentialspublic 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 docpublic 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 docpublic 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 AbstractBceRequestcredentials - a valid instance of BceCredentials.Copyright © 2020. All rights reserved.