public ListSharesResult withShares(java.util.Collection<ShareDetails> shares) {
        setShares(shares);
        return this;
    }
<p>
The shares available and their metadata details.
</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