public ListSharesResult withShares(ShareDetails... shares) {
        if (this.shares == null) {
            setShares(new java.util.ArrayList<ShareDetails>(shares.length));
        }
        for (ShareDetails ele : shares) {
            this.shares.add(ele);
        }
        return this;
    }
<p>
The shares available and their metadata details.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setShares(java.util.Collection)} or {@link #withShares(java.util.Collection)} if you want to override the
existing values.
</p>

@param shares
       The shares available and their metadata details.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-omics/src/main/java/com/amazonaws/services/omics/model/ListSharesResult.java