code: public PutPipelineDefinitionResult withValidationErrors(ValidationError... validationErrors) {
          if (this.validationErrors == null) {
              setValidationErrors(new com.amazonaws.internal.SdkInternalList<ValidationError>(validationErrors.length));
          }
          for (ValidationError ele : validationErrors) {
              this.validationErrors.add(ele);
          }
          return this;
      }
docs: <p>
  The validation errors that are associated with the objects defined in <code>pipelineObjects</code>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setValidationErrors(java.util.Collection)} or {@link #withValidationErrors(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param validationErrors
  The validation errors that are associated with the objects defined in <code>pipelineObjects</code>.
  @return Returns a reference to this object so that method calls can be chained together.