public DBInstance withOptionGroupMemberships(java.util.Collection<OptionGroupMembership> optionGroupMemberships) {
        setOptionGroupMemberships(optionGroupMemberships);
        return this;
    }
<p>
The list of option group memberships for this DB instance.
</p>

@param optionGroupMemberships
       The list of option group memberships for this 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