code: public BatchCreatePartitionResult withErrors(PartitionError... errors) {
          if (this.errors == null) {
              setErrors(new java.util.ArrayList<PartitionError>(errors.length));
          }
          for (PartitionError ele : errors) {
              this.errors.add(ele);
          }
          return this;
      }
docs: <p>
  Errors encountered when trying to create the requested partitions.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param errors
  Errors encountered when trying to create the requested partitions.
  @return Returns a reference to this object so that method calls can be chained together.