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

        if (obj instanceof UpdateCrossAccountAttachmentRequest == false)
            return false;
        UpdateCrossAccountAttachmentRequest other = (UpdateCrossAccountAttachmentRequest) obj;
        if (other.getAttachmentArn() == null ^ this.getAttachmentArn() == null)
            return false;
        if (other.getAttachmentArn() != null && other.getAttachmentArn().equals(this.getAttachmentArn()) == false)
            return false;
        if (other.getName() == null ^ this.getName() == null)
            return false;
        if (other.getName() != null && other.getName().equals(this.getName()) == false)
            return false;
        if (other.getAddPrincipals() == null ^ this.getAddPrincipals() == null)
            return false;
        if (other.getAddPrincipals() != null && other.getAddPrincipals().equals(this.getAddPrincipals()) == false)
            return false;
        if (other.getRemovePrincipals() == null ^ this.getRemovePrincipals() == null)
            return false;
        if (other.getRemovePrincipals() != null && other.getRemovePrincipals().equals(this.getRemovePrincipals()) == false)
            return false;
        if (other.getAddResources() == null ^ this.getAddResources() == null)
            return false;
        if (other.getAddResources() != null && other.getAddResources().equals(this.getAddResources()) == false)
            return false;
        if (other.getRemoveResources() == null ^ this.getRemoveResources() == null)
            return false;
        if (other.getRemoveResources() != null && other.getRemoveResources().equals(this.getRemoveResources()) == 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-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/UpdateCrossAccountAttachmentRequest.java