private static PutRecordBatchResult putRecordBatch(List<Record> recordList) {
        PutRecordBatchRequest putRecordBatchRequest = new PutRecordBatchRequest();
        putRecordBatchRequest.setDeliveryStreamName(deliveryStreamName);
        putRecordBatchRequest.setRecords(recordList);

        // Put Record Batch records. Max No.Of Records we can put in a
        // single put record batch request is 500
        return firehoseClient.putRecordBatch(putRecordBatchRequest);
    }
Method to perform PutRecordBatch operation with the given record list.

@param recordList the collection of records
@return the output of PutRecordBatch
src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java