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

        if (obj instanceof AssociateDataShareConsumerRequest == false)
            return false;
        AssociateDataShareConsumerRequest other = (AssociateDataShareConsumerRequest) obj;
        if (other.getDataShareArn() == null ^ this.getDataShareArn() == null)
            return false;
        if (other.getDataShareArn() != null && other.getDataShareArn().equals(this.getDataShareArn()) == false)
            return false;
        if (other.getAssociateEntireAccount() == null ^ this.getAssociateEntireAccount() == null)
            return false;
        if (other.getAssociateEntireAccount() != null && other.getAssociateEntireAccount().equals(this.getAssociateEntireAccount()) == false)
            return false;
        if (other.getConsumerArn() == null ^ this.getConsumerArn() == null)
            return false;
        if (other.getConsumerArn() != null && other.getConsumerArn().equals(this.getConsumerArn()) == false)
            return false;
        if (other.getConsumerRegion() == null ^ this.getConsumerRegion() == null)
            return false;
        if (other.getConsumerRegion() != null && other.getConsumerRegion().equals(this.getConsumerRegion()) == false)
            return false;
        if (other.getAllowWrites() == null ^ this.getAllowWrites() == null)
            return false;
        if (other.getAllowWrites() != null && other.getAllowWrites().equals(this.getAllowWrites()) == 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-redshift/src/main/java/com/amazonaws/services/redshift/model/AssociateDataShareConsumerRequest.java