@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getServiceName() != null)
            sb.append("ServiceName: ").append(getServiceName()).append(",");
        if (getLastAuthenticated() != null)
            sb.append("LastAuthenticated: ").append(getLastAuthenticated()).append(",");
        if (getServiceNamespace() != null)
            sb.append("ServiceNamespace: ").append(getServiceNamespace()).append(",");
        if (getLastAuthenticatedEntity() != null)
            sb.append("LastAuthenticatedEntity: ").append(getLastAuthenticatedEntity()).append(",");
        if (getLastAuthenticatedRegion() != null)
            sb.append("LastAuthenticatedRegion: ").append(getLastAuthenticatedRegion()).append(",");
        if (getTotalAuthenticatedEntities() != null)
            sb.append("TotalAuthenticatedEntities: ").append(getTotalAuthenticatedEntities()).append(",");
        if (getTrackedActionsLastAccessed() != null)
            sb.append("TrackedActionsLastAccessed: ").append(getTrackedActionsLastAccessed());
        sb.append("}");
        return sb.toString();
    }
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