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

        this.optionGroupMemberships = new java.util.ArrayList<AwsRdsDbOptionGroupMembership>(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-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsRdsDbInstanceDetails.java