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

        if (obj instanceof ReplicationInfo == false)
            return false;
        ReplicationInfo other = (ReplicationInfo) obj;
        if (other.getConsumerGroupReplication() == null ^ this.getConsumerGroupReplication() == null)
            return false;
        if (other.getConsumerGroupReplication() != null && other.getConsumerGroupReplication().equals(this.getConsumerGroupReplication()) == false)
            return false;
        if (other.getSourceKafkaClusterArn() == null ^ this.getSourceKafkaClusterArn() == null)
            return false;
        if (other.getSourceKafkaClusterArn() != null && other.getSourceKafkaClusterArn().equals(this.getSourceKafkaClusterArn()) == false)
            return false;
        if (other.getTargetCompressionType() == null ^ this.getTargetCompressionType() == null)
            return false;
        if (other.getTargetCompressionType() != null && other.getTargetCompressionType().equals(this.getTargetCompressionType()) == false)
            return false;
        if (other.getTargetKafkaClusterArn() == null ^ this.getTargetKafkaClusterArn() == null)
            return false;
        if (other.getTargetKafkaClusterArn() != null && other.getTargetKafkaClusterArn().equals(this.getTargetKafkaClusterArn()) == false)
            return false;
        if (other.getTopicReplication() == null ^ this.getTopicReplication() == null)
            return false;
        if (other.getTopicReplication() != null && other.getTopicReplication().equals(this.getTopicReplication()) == 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/ReplicationInfo.java