public Event withRecommendationId(String recommendationId) {
        setRecommendationId(recommendationId);
        return this;
    }
<p>
The ID of the list of recommendations that contains the item the user interacted with. Provide a
<code>recommendationId</code> to have Amazon Personalize implicitly record the recommendations you show your user
as impressions data. Or provide a <code>recommendationId</code> if you use a metric attribution to measure the
impact of recommendations.
</p>
<p>
For more information on recording impressions data, see <a href=
"https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#putevents-including-impressions-data"
>Recording impressions data</a>. For more information on creating a metric attribution see <a
href="https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html">Measuring impact of
recommendations</a>.
</p>

@param recommendationId
       The ID of the list of recommendations that contains the item the user interacted with. Provide a
       <code>recommendationId</code> to have Amazon Personalize implicitly record the recommendations you show
       your user as impressions data. Or provide a <code>recommendationId</code> if you use a metric attribution
       to measure the impact of recommendations. </p>
       <p>
       For more information on recording impressions data, see <a href=
       "https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#putevents-including-impressions-data"
       >Recording impressions data</a>. For more information on creating a metric attribution see <a
       href="https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html">Measuring
       impact of recommendations</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-personalizeevents/src/main/java/com/amazonaws/services/personalizeevents/model/Event.java