public GetResourceShareAssociationsResult 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;
    }
public GetResourceShareAssociationsResult 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>
Information about the association.
</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
Information about the association.
@return Returns a reference to this object so that method calls can be chained together.