code: 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;
      }
docs: <p>
  Each entry in the array contains:
  </p>
  <p>
  PatchGroup: string (between 1 and 256 characters, Regex: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$)
  </p>
  <p>
  PatchBaselineIdentity: A PatchBaselineIdentity element.
  </p>
  <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>
  <p>
  PatchGroup: string (between 1 and 256 characters, Regex: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$)
  </p>
  <p>
  PatchBaselineIdentity: A PatchBaselineIdentity element.
  @return Returns a reference to this object so that method calls can be chained together.