public void setHeartbeatInSeconds(Long heartbeatInSeconds) {
        this.heartbeatInSeconds = heartbeatInSeconds;
    }
<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.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/ActivityScheduledEventDetails.java