public GetResourceSharesResult withResourceShares(java.util.Collection<ResourceShare> resourceShares) {
        setResourceShares(resourceShares);
        return this;
    }
<p>
An array of objects that contain the information about the resource shares.
</p>

@param resourceShares
       An array of objects that contain the information about the resource shares.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/GetResourceSharesResult.java