code: public UpdatePatchBaselineRequest withSources(PatchSource... sources) {
          if (this.sources == null) {
              setSources(new com.amazonaws.internal.SdkInternalList<PatchSource>(sources.length));
          }
          for (PatchSource ele : sources) {
              this.sources.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the patches to use to update the instances, including target operating systems and source
  repositories. Applies to Linux instances only.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSources(java.util.Collection)} or {@link #withSources(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param sources
  Information about the patches to use to update the instances, including target operating systems and
  source repositories. Applies to Linux instances only.
  @return Returns a reference to this object so that method calls can be chained together.