public void setConsumerGroupsToExclude(java.util.Collection<String> consumerGroupsToExclude) {
        if (consumerGroupsToExclude == null) {
            this.consumerGroupsToExclude = null;
            return;
        }

        this.consumerGroupsToExclude = new java.util.ArrayList<String>(consumerGroupsToExclude);
    }
<p>
List of regular expression patterns indicating the consumer groups that should not be replicated.
</p>

@param consumerGroupsToExclude
       List of regular expression patterns indicating the consumer groups that should not be replicated.
aws-java-sdk-kafka/src/main/java/com/amazonaws/services/kafka/model/ConsumerGroupReplication.java