public DBInstance withDomainMemberships(java.util.Collection<DomainMembership> domainMemberships) {
        setDomainMemberships(domainMemberships);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/DBInstance.java