public GetPatchBaselineResult 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;
    }
<p>
Information about the patches to use to update the managed nodes, including target operating systems and source
repositories. Applies to Linux managed nodes 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 managed nodes, including target operating systems and
       source repositories. Applies to Linux managed nodes only.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/GetPatchBaselineResult.java