code: public ListFileSharesResult withFileShareInfoList(FileShareInfo... fileShareInfoList) {
          if (this.fileShareInfoList == null) {
              setFileShareInfoList(new com.amazonaws.internal.SdkInternalList<FileShareInfo>(fileShareInfoList.length));
          }
          for (FileShareInfo ele : fileShareInfoList) {
              this.fileShareInfoList.add(ele);
          }
          return this;
      }
docs: <p>
  An array of information about the file gateway's file shares.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setFileShareInfoList(java.util.Collection)} or {@link #withFileShareInfoList(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param fileShareInfoList
  An array of information about the file gateway's file shares.
  @return Returns a reference to this object so that method calls can be chained together.