public DescribePatchGroupsResult withMappings(PatchGroupPatchBaselineMapping... mappings) {
        if (this.mappings == null) {
            setMappings(new com.amazonaws.internal.SdkInternalList<PatchGroupPatchBaselineMapping>(mappings.length));
        }
        for (PatchGroupPatchBaselineMapping ele : mappings) {
            this.mappings.add(ele);
        }
        return this;
    }
<p>
Each entry in the array contains:
</p>
<ul>
<li>
<p>
<code>PatchGroup</code>: string (between 1 and 256 characters. Regex:
<code>^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$)</code>
</p>
</li>
<li>
<p>
<code>PatchBaselineIdentity</code>: A <code>PatchBaselineIdentity</code> element.
</p>
</li>
</ul>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMappings(java.util.Collection)} or {@link #withMappings(java.util.Collection)} if you want to override
the existing values.
</p>

@param mappings
       Each entry in the array contains:</p>
       <ul>
       <li>
       <p>
       <code>PatchGroup</code>: string (between 1 and 256 characters. Regex:
       <code>^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$)</code>
       </p>
       </li>
       <li>
       <p>
       <code>PatchBaselineIdentity</code>: A <code>PatchBaselineIdentity</code> element.
       </p>
       </li>
@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/DescribePatchGroupsResult.java