public void setOptionGroupMemberships(java.util.Collection<OptionGroupMembership> optionGroupMemberships) {
        if (optionGroupMemberships == null) {
            this.optionGroupMemberships = null;
            return;
        }

        this.optionGroupMemberships = new com.amazonaws.internal.SdkInternalList<OptionGroupMembership>(optionGroupMemberships);
    }
<p>
The list of option group memberships for this DB instance.
</p>

@param optionGroupMemberships
       The list of option group memberships for this DB instance.
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/DBInstance.java