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