private CreateVolumeResponseType createVolume ( final String volumeType , final String size , final String availabilityZone , final int iops , final String snapshotId ) { CreateVolumeResponseType ret = new CreateVolumeResponseType ( ) ; ret . setRequestId ( UUID . randomUUID ( ) . toString ( ) ) ; MockVolume mockVolume = mockVolumeController . createVolume ( volumeType , size , availabilityZone , iops , snapshotId ) ; ret . setVolumeId ( mockVolume . getVolumeId ( ) ) ; ret . setVolumeType ( mockVolume . getVolumeType ( ) ) ; ret . setSize ( mockVolume . getSize ( ) ) ; ret . setAvailabilityZone ( mockVolume . getAvailabilityZone ( ) ) ; ret . setIops ( mockVolume . getIops ( ) ) ; ret . setSnapshotId ( mockVolume . getSnapshotId ( ) ) ; return ret ; }
Handles createVolume request to create volume and returns response with a volume .