public ListReceivedGrantsResult withGrants(Grant... grants) {
        if (this.grants == null) {
            setGrants(new java.util.ArrayList<Grant>(grants.length));
        }
        for (Grant ele : grants) {
            this.grants.add(ele);
        }
        return this;
    }
<p>
Received grant details.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setGrants(java.util.Collection)} or {@link #withGrants(java.util.Collection)} if you want to override the
existing values.
</p>

@param grants
       Received grant details.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-licensemanager/src/main/java/com/amazonaws/services/licensemanager/model/ListReceivedGrantsResult.java