public DescribePatchBaselinesResult withBaselineIdentities(PatchBaselineIdentity... baselineIdentities) {
        if (this.baselineIdentities == null) {
            setBaselineIdentities(new com.amazonaws.internal.SdkInternalList<PatchBaselineIdentity>(baselineIdentities.length));
        }
        for (PatchBaselineIdentity ele : baselineIdentities) {
            this.baselineIdentities.add(ele);
        }
        return this;
    }
<p>
An array of <code>PatchBaselineIdentity</code> elements.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setBaselineIdentities(java.util.Collection)} or {@link #withBaselineIdentities(java.util.Collection)} if
you want to override the existing values.
</p>

@param baselineIdentities
       An array of <code>PatchBaselineIdentity</code> elements.
@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/DescribePatchBaselinesResult.java