code: public GetPatchBaselineResult withRejectedPatches(String... rejectedPatches) {
          if (this.rejectedPatches == null) {
              setRejectedPatches(new com.amazonaws.internal.SdkInternalList<String>(rejectedPatches.length));
          }
          for (String ele : rejectedPatches) {
              this.rejectedPatches.add(ele);
          }
          return this;
      }
docs: <p>
  A list of explicitly rejected patches for the baseline.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setRejectedPatches(java.util.Collection)} or {@link #withRejectedPatches(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param rejectedPatches
  A list of explicitly rejected patches for the baseline.
  @return Returns a reference to this object so that method calls can be chained together.