code: public DescribeAvailablePatchesResult withPatches(Patch... patches) {
          if (this.patches == null) {
              setPatches(new com.amazonaws.internal.SdkInternalList<Patch>(patches.length));
          }
          for (Patch ele : patches) {
              this.patches.add(ele);
          }
          return this;
      }
docs: <p>
  An array of patches. Each entry in the array is a patch structure.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPatches(java.util.Collection)} or {@link #withPatches(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param patches
  An array of patches. Each entry in the array is a patch structure.
  @return Returns a reference to this object so that method calls can be chained together.