public AssociateResourceShareResult withResourceShareAssociations(ResourceShareAssociation... resourceShareAssociations) {
        if (this.resourceShareAssociations == null) {
            setResourceShareAssociations(new java.util.ArrayList<ResourceShareAssociation>(resourceShareAssociations.length));
        }
        for (ResourceShareAssociation ele : resourceShareAssociations) {
            this.resourceShareAssociations.add(ele);
        }
        return this;
    }
<p>
An array of objects that contain information about the associations.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceShareAssociations(java.util.Collection)} or
{@link #withResourceShareAssociations(java.util.Collection)} if you want to override the existing values.
</p>

@param resourceShareAssociations
       An array of objects that contain information about the associations.
@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/AssociateResourceShareResult.java