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

        if (obj instanceof DataShareAssociation == false)
            return false;
        DataShareAssociation other = (DataShareAssociation) obj;
        if (other.getConsumerIdentifier() == null ^ this.getConsumerIdentifier() == null)
            return false;
        if (other.getConsumerIdentifier() != null && other.getConsumerIdentifier().equals(this.getConsumerIdentifier()) == false)
            return false;
        if (other.getStatus() == null ^ this.getStatus() == null)
            return false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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.getCreatedDate() == null ^ this.getCreatedDate() == null)
            return false;
        if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false)
            return false;
        if (other.getStatusChangeDate() == null ^ this.getStatusChangeDate() == null)
            return false;
        if (other.getStatusChangeDate() != null && other.getStatusChangeDate().equals(this.getStatusChangeDate()) == false)
            return false;
        if (other.getProducerAllowedWrites() == null ^ this.getProducerAllowedWrites() == null)
            return false;
        if (other.getProducerAllowedWrites() != null && other.getProducerAllowedWrites().equals(this.getProducerAllowedWrites()) == false)
            return false;
        if (other.getConsumerAcceptedWrites() == null ^ this.getConsumerAcceptedWrites() == null)
            return false;
        if (other.getConsumerAcceptedWrites() != null && other.getConsumerAcceptedWrites().equals(this.getConsumerAcceptedWrites()) == 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/DataShareAssociation.java