code: 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;
      }
docs: <p>
  An array of successfully and unsuccessfully processed record results, correlated with the request by natural
  ordering. 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, correlated with the request by
  natural ordering. 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.