public void setVersion(Long version) {
        this.version = version;
    }
<p>
The version counter for the task. Every time a task experiences a change that starts a CloudWatch event, the
version counter is incremented. If you replicate your Amazon ECS task state with CloudWatch Events, you can
compare the version of a task reported by the Amazon ECS API actions with the version reported in CloudWatch
Events for the task (inside the <code>detail</code> object) to verify that the version in your event stream is
current.
</p>

@param version
       The version counter for the task. Every time a task experiences a change that starts a CloudWatch event,
       the version counter is incremented. If you replicate your Amazon ECS task state with CloudWatch Events,
       you can compare the version of a task reported by the Amazon ECS API actions with the version reported in
       CloudWatch Events for the task (inside the <code>detail</code> object) to verify that the version in your
       event stream is current.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Task.java