public ListDomainAssociationsResult withDomainAssociations(DomainAssociation... domainAssociations) {
        if (this.domainAssociations == null) {
            setDomainAssociations(new java.util.ArrayList<DomainAssociation>(domainAssociations.length));
        }
        for (DomainAssociation ele : domainAssociations) {
            this.domainAssociations.add(ele);
        }
        return this;
    }
<p>
A list of domain associations.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDomainAssociations(java.util.Collection)} or {@link #withDomainAssociations(java.util.Collection)} if
you want to override the existing values.
</p>

@param domainAssociations
       A list of domain associations.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-amplify/src/main/java/com/amazonaws/services/amplify/model/ListDomainAssociationsResult.java