@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getConsumerGroupsToExclude() != null)
            sb.append("ConsumerGroupsToExclude: ").append(getConsumerGroupsToExclude()).append(",");
        if (getConsumerGroupsToReplicate() != null)
            sb.append("ConsumerGroupsToReplicate: ").append(getConsumerGroupsToReplicate()).append(",");
        if (getDetectAndCopyNewConsumerGroups() != null)
            sb.append("DetectAndCopyNewConsumerGroups: ").append(getDetectAndCopyNewConsumerGroups()).append(",");
        if (getSynchroniseConsumerGroupOffsets() != null)
            sb.append("SynchroniseConsumerGroupOffsets: ").append(getSynchroniseConsumerGroupOffsets());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-kafka/src/main/java/com/amazonaws/services/kafka/model/ConsumerGroupReplication.java