docs: 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;
      }