code: public BatchPutMessageResult withBatchPutMessageErrorEntries(BatchPutMessageErrorEntry... batchPutMessageErrorEntries) {
          if (this.batchPutMessageErrorEntries == null) {
              setBatchPutMessageErrorEntries(new java.util.ArrayList<BatchPutMessageErrorEntry>(batchPutMessageErrorEntries.length));
          }
          for (BatchPutMessageErrorEntry ele : batchPutMessageErrorEntries) {
              this.batchPutMessageErrorEntries.add(ele);
          }
          return this;
      }
docs: <p>
  A list of any errors encountered when sending the messages to the channel.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setBatchPutMessageErrorEntries(java.util.Collection)} or
  {@link #withBatchPutMessageErrorEntries(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param batchPutMessageErrorEntries
  A list of any errors encountered when sending the messages to the channel.
  @return Returns a reference to this object so that method calls can be chained together.