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

        if (obj instanceof AgentInfo == false)
            return false;
        AgentInfo other = (AgentInfo) obj;
        if (other.getId() == null ^ this.getId() == null)
            return false;
        if (other.getId() != null && other.getId().equals(this.getId()) == false)
            return false;
        if (other.getConnectedToAgentTimestamp() == null ^ this.getConnectedToAgentTimestamp() == null)
            return false;
        if (other.getConnectedToAgentTimestamp() != null && other.getConnectedToAgentTimestamp().equals(this.getConnectedToAgentTimestamp()) == false)
            return false;
        if (other.getAgentPauseDurationInSeconds() == null ^ this.getAgentPauseDurationInSeconds() == null)
            return false;
        if (other.getAgentPauseDurationInSeconds() != null && other.getAgentPauseDurationInSeconds().equals(this.getAgentPauseDurationInSeconds()) == false)
            return false;
        if (other.getHierarchyGroups() == null ^ this.getHierarchyGroups() == null)
            return false;
        if (other.getHierarchyGroups() != null && other.getHierarchyGroups().equals(this.getHierarchyGroups()) == false)
            return false;
        if (other.getDeviceInfo() == null ^ this.getDeviceInfo() == null)
            return false;
        if (other.getDeviceInfo() != null && other.getDeviceInfo().equals(this.getDeviceInfo()) == false)
            return false;
        if (other.getCapabilities() == null ^ this.getCapabilities() == null)
            return false;
        if (other.getCapabilities() != null && other.getCapabilities().equals(this.getCapabilities()) == 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/AgentInfo.java