public ActivityScheduledEventDetails withTimeoutInSeconds(Long timeoutInSeconds) {
        setTimeoutInSeconds(timeoutInSeconds);
        return this;
    }
<p>
The maximum allowed duration of the activity task.
</p>

@param timeoutInSeconds
       The maximum allowed duration of the activity task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/ActivityScheduledEventDetails.java