public AttemptContainerDetail withTaskArn(String taskArn) {
        setTaskArn(taskArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container
attempt receives a task ARN when they reach the <code>STARTING</code> status.
</p>

@param taskArn
       The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each
       container attempt receives a task ARN when they reach the <code>STARTING</code> status.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/AttemptContainerDetail.java