public PutRecordsResult withRecords(PutRecordsResultEntry... records) {
        if (this.records == null) {
            setRecords(new com.amazonaws.internal.SdkInternalList<PutRecordsResultEntry>(records.length));
        }
        for (PutRecordsResultEntry ele : records) {
            this.records.add(ele);
        }
        return this;
    }
<p>
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a
stream includes <code>SequenceNumber</code> and <code>ShardId</code> in the result. A record that fails to be
added to a stream includes <code>ErrorCode</code> and <code>ErrorMessage</code> in the result.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRecords(java.util.Collection)} or {@link #withRecords(java.util.Collection)} if you want to override
the existing values.
</p>

@param records
       An array of successfully and unsuccessfully processed record results. A record that is successfully added
       to a stream includes <code>SequenceNumber</code> and <code>ShardId</code> in the result. A record that
       fails to be added to a stream includes <code>ErrorCode</code> and <code>ErrorMessage</code> in the result.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/model/PutRecordsResult.java