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;
    }
<p>
An array of information about the S3 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 S3 File Gateway's file shares.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/ListFileSharesResult.java