public void setTruncatedEvents(java.util.Collection<StreamEvent> truncatedEvents) {
        if (truncatedEvents == null) {
            this.truncatedEvents = null;
            return;
        }

        this.truncatedEvents = new java.util.ArrayList<StreamEvent>(truncatedEvents);
    }
<p>
List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up
to 500 events. For Amazon IVS events, see <a
href="https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html">Using Amazon EventBridge with Amazon
IVS</a>.
</p>

@param truncatedEvents
       List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and
       contains up to 500 events. For Amazon IVS events, see <a
       href="https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html">Using Amazon EventBridge with
       Amazon IVS</a>.
aws-java-sdk-ivs/src/main/java/com/amazonaws/services/ivs/model/StreamSession.java