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

        if (obj instanceof RegisterResourceRequest == false)
            return false;
        RegisterResourceRequest other = (RegisterResourceRequest) obj;
        if (other.getResourceArn() == null ^ this.getResourceArn() == null)
            return false;
        if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
            return false;
        if (other.getUseServiceLinkedRole() == null ^ this.getUseServiceLinkedRole() == null)
            return false;
        if (other.getUseServiceLinkedRole() != null && other.getUseServiceLinkedRole().equals(this.getUseServiceLinkedRole()) == false)
            return false;
        if (other.getRoleArn() == null ^ this.getRoleArn() == null)
            return false;
        if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
            return false;
        if (other.getWithFederation() == null ^ this.getWithFederation() == null)
            return false;
        if (other.getWithFederation() != null && other.getWithFederation().equals(this.getWithFederation()) == false)
            return false;
        if (other.getHybridAccessEnabled() == null ^ this.getHybridAccessEnabled() == null)
            return false;
        if (other.getHybridAccessEnabled() != null && other.getHybridAccessEnabled().equals(this.getHybridAccessEnabled()) == 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-lakeformation/src/main/java/com/amazonaws/services/lakeformation/model/RegisterResourceRequest.java