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

        if (obj instanceof HierarchyGroups == false)
            return false;
        HierarchyGroups other = (HierarchyGroups) obj;
        if (other.getLevel1() == null ^ this.getLevel1() == null)
            return false;
        if (other.getLevel1() != null && other.getLevel1().equals(this.getLevel1()) == false)
            return false;
        if (other.getLevel2() == null ^ this.getLevel2() == null)
            return false;
        if (other.getLevel2() != null && other.getLevel2().equals(this.getLevel2()) == false)
            return false;
        if (other.getLevel3() == null ^ this.getLevel3() == null)
            return false;
        if (other.getLevel3() != null && other.getLevel3().equals(this.getLevel3()) == false)
            return false;
        if (other.getLevel4() == null ^ this.getLevel4() == null)
            return false;
        if (other.getLevel4() != null && other.getLevel4().equals(this.getLevel4()) == false)
            return false;
        if (other.getLevel5() == null ^ this.getLevel5() == null)
            return false;
        if (other.getLevel5() != null && other.getLevel5().equals(this.getLevel5()) == 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-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroups.java