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

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

public class ResizeVolumeRequest
extends AbstractBceRequest

The request for resizing specified volume.


Constructor Summary
ResizeVolumeRequest()
           
 
Method Summary
 String getClientToken()
           
 int getNewCdsSizeInGB()
           
 String getVolumeId()
           
 void setClientToken(String clientToken)
           
 void setNewCdsSizeInGB(int newCdsSizeInGB)
           
 void setVolumeId(String volumeId)
           
 ResizeVolumeRequest withClientToken(String clientToken)
          Configure optional client token for the request.
 ResizeVolumeRequest withNewCdsSizeInGB(int newCdsSizeInGB)
          Configure newCdsSizeInGB for the request.
 ResizeVolumeRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 ResizeVolumeRequest 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

ResizeVolumeRequest

public ResizeVolumeRequest()
Method Detail

getClientToken

public String getClientToken()

setClientToken

public void setClientToken(String clientToken)

withClientToken

public ResizeVolumeRequest 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:
ResizeVolumeRequest with specific clientToken

getVolumeId

public String getVolumeId()

setVolumeId

public void setVolumeId(String volumeId)

withVolumeId

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

Parameters:
volumeId - The id of volume which will be resize.
Returns:
ResizeVolumeRequest with volumeId.

getNewCdsSizeInGB

public int getNewCdsSizeInGB()

setNewCdsSizeInGB

public void setNewCdsSizeInGB(int newCdsSizeInGB)

withNewCdsSizeInGB

public ResizeVolumeRequest withNewCdsSizeInGB(int newCdsSizeInGB)
Configure newCdsSizeInGB for the request.

Parameters:
newCdsSizeInGB - The new volume size in GB, available size is 0-5120 GB
Returns:
ResizeVolumeRequest with newCdsSizeInGB.

withRequestCredentials

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

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


Copyright © 2018. All rights reserved.