@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof ConsumerGroupReplicationUpdate == false)
            return false;
        ConsumerGroupReplicationUpdate other = (ConsumerGroupReplicationUpdate) obj;
        if (other.getConsumerGroupsToExclude() == null ^ this.getConsumerGroupsToExclude() == null)
            return false;
        if (other.getConsumerGroupsToExclude() != null && other.getConsumerGroupsToExclude().equals(this.getConsumerGroupsToExclude()) == false)
            return false;
        if (other.getConsumerGroupsToReplicate() == null ^ this.getConsumerGroupsToReplicate() == null)
            return false;
        if (other.getConsumerGroupsToReplicate() != null && other.getConsumerGroupsToReplicate().equals(this.getConsumerGroupsToReplicate()) == false)
            return false;
        if (other.getDetectAndCopyNewConsumerGroups() == null ^ this.getDetectAndCopyNewConsumerGroups() == null)
            return false;
        if (other.getDetectAndCopyNewConsumerGroups() != null
                && other.getDetectAndCopyNewConsumerGroups().equals(this.getDetectAndCopyNewConsumerGroups()) == false)
            return false;
        if (other.getSynchroniseConsumerGroupOffsets() == null ^ this.getSynchroniseConsumerGroupOffsets() == null)
            return false;
        if (other.getSynchroniseConsumerGroupOffsets() != null
                && other.getSynchroniseConsumerGroupOffsets().equals(this.getSynchroniseConsumerGroupOffsets()) == false)
            return false;
        return true;
    }
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/ConsumerGroupReplicationUpdate.java