response.setCreateVolumeResponse(param1);
return response;
}
public static DeleteVolumeResponse toDeleteVolumeResponse(EC2Volume engineResponse) {
DeleteVolumeResponse response = new DeleteVolumeResponse();
DeleteVolumeResponseType param1 = new DeleteVolumeResponseType();
if (null != engineResponse.getState())
param1.set_return(true);
else
param1.set_return(false); // ToDo - supposed to return an error
param1.setRequestId(UUID.randomUUID().toString());
response.setDeleteVolumeResponse(param1);
return response;
}