public class CreateVolumeRequest extends AbstractBceRequest
| Constructor and Description |
|---|
CreateVolumeRequest() |
getRequestCredentials, setRequestCredentialspublic CreateVolumeRequest withCdsExtraIo(int cdsExtraIo)
public CreateVolumeRequest withInstanceId(String instanceId)
public CreateVolumeRequest withName(String name)
public CreateVolumeRequest withDescription(String description)
public CreateVolumeRequest withRenewTime(int renewTime)
public CreateVolumeRequest withRenewTimeUnit(String renewTimeUnit)
public CreateVolumeRequest withRelationTag(Boolean relationTag)
public CreateVolumeRequest withTags(List<TagModel> tags)
public CreateVolumeRequest withResGroupIds(List<String> resGroupIds)
public CreateVolumeRequest withAutoSnapshotPolicy(AutoSnapshotPolicyModel autoSnapshotPolicy)
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 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 String getClusterId()
public void setClusterId(String clusterId)
public CreateVolumeRequest withClusterId(String clusterId)
public String getChargeType()
public void setChargeType(String chargeType)
public CreateVolumeRequest withChargeType(String chargeType)
public CreateVolumeRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.Copyright © 2024. All rights reserved.