public ActivityScheduledEventDetails withHeartbeatInSeconds(Long heartbeatInSeconds) {
        setHeartbeatInSeconds(heartbeatInSeconds);
        return this;
    }
<p>
The maximum allowed duration between two heartbeats for the activity task.
</p>

@param heartbeatInSeconds
       The maximum allowed duration between two heartbeats for 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