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

        if (obj instanceof ServiceLastAccessed == false)
            return false;
        ServiceLastAccessed other = (ServiceLastAccessed) obj;
        if (other.getServiceName() == null ^ this.getServiceName() == null)
            return false;
        if (other.getServiceName() != null && other.getServiceName().equals(this.getServiceName()) == false)
            return false;
        if (other.getLastAuthenticated() == null ^ this.getLastAuthenticated() == null)
            return false;
        if (other.getLastAuthenticated() != null && other.getLastAuthenticated().equals(this.getLastAuthenticated()) == false)
            return false;
        if (other.getServiceNamespace() == null ^ this.getServiceNamespace() == null)
            return false;
        if (other.getServiceNamespace() != null && other.getServiceNamespace().equals(this.getServiceNamespace()) == false)
            return false;
        if (other.getLastAuthenticatedEntity() == null ^ this.getLastAuthenticatedEntity() == null)
            return false;
        if (other.getLastAuthenticatedEntity() != null && other.getLastAuthenticatedEntity().equals(this.getLastAuthenticatedEntity()) == false)
            return false;
        if (other.getLastAuthenticatedRegion() == null ^ this.getLastAuthenticatedRegion() == null)
            return false;
        if (other.getLastAuthenticatedRegion() != null && other.getLastAuthenticatedRegion().equals(this.getLastAuthenticatedRegion()) == false)
            return false;
        if (other.getTotalAuthenticatedEntities() == null ^ this.getTotalAuthenticatedEntities() == null)
            return false;
        if (other.getTotalAuthenticatedEntities() != null && other.getTotalAuthenticatedEntities().equals(this.getTotalAuthenticatedEntities()) == false)
            return false;
        if (other.getTrackedActionsLastAccessed() == null ^ this.getTrackedActionsLastAccessed() == null)
            return false;
        if (other.getTrackedActionsLastAccessed() != null && other.getTrackedActionsLastAccessed().equals(this.getTrackedActionsLastAccessed()) == 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-iam/src/main/java/com/amazonaws/services/identitymanagement/model/ServiceLastAccessed.java