public AwsRdsDbClusterDetails withDbClusterOptionGroupMemberships(AwsRdsDbClusterOptionGroupMembership... dbClusterOptionGroupMemberships) {
        if (this.dbClusterOptionGroupMemberships == null) {
            setDbClusterOptionGroupMemberships(new java.util.ArrayList<AwsRdsDbClusterOptionGroupMembership>(dbClusterOptionGroupMemberships.length));
        }
        for (AwsRdsDbClusterOptionGroupMembership ele : dbClusterOptionGroupMemberships) {
            this.dbClusterOptionGroupMemberships.add(ele);
        }
        return this;
    }
<p>
The list of option group memberships for this DB cluster.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDbClusterOptionGroupMemberships(java.util.Collection)} or
{@link #withDbClusterOptionGroupMemberships(java.util.Collection)} if you want to override the existing values.
</p>

@param dbClusterOptionGroupMemberships
       The list of option group memberships for this DB cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsRdsDbClusterDetails.java