public ConsumerGroupReplicationUpdate withConsumerGroupsToExclude(java.util.Collection<String> consumerGroupsToExclude) {
        setConsumerGroupsToExclude(consumerGroupsToExclude);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kafka/src/main/java/com/amazonaws/services/kafka/model/ConsumerGroupReplicationUpdate.java