@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getEventId() != null)
            sb.append("EventId: ").append(getEventId()).append(",");
        if (getEventType() != null)
            sb.append("EventType: ").append(getEventType()).append(",");
        if (getEventValue() != null)
            sb.append("EventValue: ").append(getEventValue()).append(",");
        if (getItemId() != null)
            sb.append("ItemId: ").append("***Sensitive Data Redacted***").append(",");
        if (getProperties() != null)
            sb.append("Properties: ").append("***Sensitive Data Redacted***").append(",");
        if (getSentAt() != null)
            sb.append("SentAt: ").append(getSentAt()).append(",");
        if (getRecommendationId() != null)
            sb.append("RecommendationId: ").append(getRecommendationId()).append(",");
        if (getImpression() != null)
            sb.append("Impression: ").append("***Sensitive Data Redacted***").append(",");
        if (getMetricAttribution() != null)
            sb.append("MetricAttribution: ").append(getMetricAttribution());
        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-personalizeevents/src/main/java/com/amazonaws/services/personalizeevents/model/Event.java