com.baidubce.services.bcc.model.volume
Class PurchaseReservedVolumeRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bcc.model.volume.PurchaseReservedVolumeRequest

public class PurchaseReservedVolumeRequest
extends AbstractBceRequest

The request for renewing the volume.


Constructor Summary
PurchaseReservedVolumeRequest()
           
 
Method Summary
 Billing getBilling()
           
 String getClientToken()
           
 String getVolumeId()
           
 void setBilling(Billing billing)
           
 void setClientToken(String clientToken)
           
 void setVolumeId(String volumeId)
           
 PurchaseReservedVolumeRequest withBilling(Billing billing)
          Configure billing for the request.
 PurchaseReservedVolumeRequest withClientToken(String clientToken)
          Configure optional client token for the request.
 PurchaseReservedVolumeRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 PurchaseReservedVolumeRequest withVolumeId(String volumeId)
          Configure volumeId for the request.
 
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

PurchaseReservedVolumeRequest

public PurchaseReservedVolumeRequest()
Method Detail

getClientToken

public String getClientToken()

setClientToken

public void setClientToken(String clientToken)

withClientToken

public PurchaseReservedVolumeRequest withClientToken(String clientToken)
Configure optional client token for the request. The request will be idempotent if client token is provided. If the clientToken is not specified by the user, a random String generated by default algorithm will be used.

Parameters:
clientToken - An ASCII string whose length is less than 64. See more detail at BCE API doc
Returns:
PurchaseReservedVolumeRequest with specific clientToken

getVolumeId

public String getVolumeId()

setVolumeId

public void setVolumeId(String volumeId)

withVolumeId

public PurchaseReservedVolumeRequest withVolumeId(String volumeId)
Configure volumeId for the request.

Parameters:
volumeId - The id of volume which will be renew.
Returns:
PurchaseReservedVolumeRequest with specific volumeId

getBilling

public Billing getBilling()

setBilling

public void setBilling(Billing billing)

withBilling

public PurchaseReservedVolumeRequest withBilling(Billing billing)
Configure billing for the request.

Parameters:
billing - The detail model to specify the billing.
Returns:
PurchaseReservedVolumeRequest with specific billing

withRequestCredentials

public PurchaseReservedVolumeRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.

Specified by:
withRequestCredentials in class AbstractBceRequest
Parameters:
credentials - a valid instance of BceCredentials.
Returns:
PurchaseReservedVolumeRequest with credentials.


Copyright © 2018. All rights reserved.