public AuthorizeDataShareResult withDataShareAssociations(DataShareAssociation... dataShareAssociations) {
        if (this.dataShareAssociations == null) {
            setDataShareAssociations(new com.amazonaws.internal.SdkInternalList<DataShareAssociation>(dataShareAssociations.length));
        }
        for (DataShareAssociation ele : dataShareAssociations) {
            this.dataShareAssociations.add(ele);
        }
        return this;
    }
<p>
A value that specifies when the datashare has an association between producer and data consumers.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDataShareAssociations(java.util.Collection)} or
{@link #withDataShareAssociations(java.util.Collection)} if you want to override the existing values.
</p>

@param dataShareAssociations
       A value that specifies when the datashare has an association between producer and data consumers.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/AuthorizeDataShareResult.java