public SendTaskHeartbeatRequest withTaskToken(String taskToken) {
        setTaskToken(taskToken);
        return this;
    }
<p>
The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a
worker, or in the <a
href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context object</a>
when a workflow enters a task state. See <a>GetActivityTaskOutput$taskToken</a>.
</p>

@param taskToken
       The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned
       to a worker, or in the <a
       href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
       object</a> when a workflow enters a task state. See <a>GetActivityTaskOutput$taskToken</a>.
@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/SendTaskHeartbeatRequest.java