code: public void resizeVolume(ResizeVolumeRequest request) {
          checkNotNull(request, "request should not be null.");
          if (Strings.isNullOrEmpty(request.getClientToken())) {
              request.setClientToken(this.generateClientToken());
          }
          checkStringNotEmpty(request.getVolumeId(), "request volumeId should not be empty.");
          checkState(request.getNewCdsSizeInGB() > 0, "request newCdsSizeInGB should greater than 0");
          InternalRequest internalRequest =
                  this.createRequest(request, HttpMethodName.PUT, VOLUME_PREFIX, request.getVolumeId());
          internalRequest.addParameter(VolumeAction.resize.name(), null);
          internalRequest.addParameter("clientToken", request.getClientToken());
          fillPayload(internalRequest, request);
          invokeHttpClient(internalRequest, AbstractBceResponse.class);
      }
docs: Resizing the specified volume with newly size.
  
  You can resize the specified volume only when the volume is Available,
  otherwise,it's will get <code>409</code> errorCode.
  
  The prepaid volume can not be downgrade.
  <p>
  This is an asynchronous interface,
  you can get the latest status by invoke {@link #getVolume(String)}
  
  @param request The request containing all options for resize the specified volume.