public void setDomainMemberships(java.util.Collection<DomainMembership> domainMemberships) {
        if (domainMemberships == null) {
            this.domainMemberships = null;
            return;
        }

        this.domainMemberships = new com.amazonaws.internal.SdkInternalList<DomainMembership>(domainMemberships);
    }
<p>
The Active Directory Domain membership records associated with the DB instance.
</p>

@param domainMemberships
       The Active Directory Domain membership records associated with the DB instance.
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/DBInstance.java