code: public PutPipelineDefinitionResult withValidationWarnings(ValidationWarning... validationWarnings) {
          if (this.validationWarnings == null) {
              setValidationWarnings(new com.amazonaws.internal.SdkInternalList<ValidationWarning>(validationWarnings.length));
          }
          for (ValidationWarning ele : validationWarnings) {
              this.validationWarnings.add(ele);
          }
          return this;
      }
docs: <p>
  The validation warnings 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 #setValidationWarnings(java.util.Collection)} or {@link #withValidationWarnings(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param validationWarnings
  The validation warnings 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.