public ActivityTaskTimedOutEventAttributes withScheduledEventId(Long scheduledEventId) {
        setScheduledEventId(scheduledEventId);
        return this;
    }
<p>
The ID of the <code>ActivityTaskScheduled</code> event that was recorded when this activity task was scheduled.
This information can be useful for diagnosing problems by tracing back the chain of events leading up to this
event.
</p>

@param scheduledEventId
       The ID of the <code>ActivityTaskScheduled</code> event that was recorded when this activity task was
       scheduled. This information can be useful for diagnosing problems by tracing back the chain of events
       leading up to this event.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/ActivityTaskTimedOutEventAttributes.java