public CreateVolumeResponse createVolume ( CreateVolumeRequest request ) { checkNotNull ( request , "request should not be null." ) ; if ( Strings . isNullOrEmpty ( request . getClientToken ( ) ) ) { request . setClientToken ( this . generateClientToken ( ) ) ; } if ( null == request . getBilling ( ) ) { request . setBilling ( generateDefaultBilling ( ) ) ; } InternalRequest internalRequest = this . createRequest ( request , HttpMethodName . POST , VOLUME_PREFIX ) ; internalRequest . addParameter ( "clientToken" , request . getClientToken ( ) ) ; fillPayload ( internalRequest , request ) ; return invokeHttpClient ( internalRequest , CreateVolumeResponse . class ) ; }
Create a volume with the specified options .