public EcsTaskProperties withTaskRoleArn(String taskRoleArn) {
        setTaskRoleArn(taskRoleArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) that's associated with the Amazon ECS task.
</p>
<note>
<p>
This is object is comparable to <a
href="https://docs.aws.amazon.com/batch/latest/APIReference/API_ContainerProperties.html"
>ContainerProperties:jobRoleArn</a>.
</p>
</note>

@param taskRoleArn
       The Amazon Resource Name (ARN) that's associated with the Amazon ECS task.</p> <note>
       <p>
       This is object is comparable to <a
       href="https://docs.aws.amazon.com/batch/latest/APIReference/API_ContainerProperties.html"
       >ContainerProperties:jobRoleArn</a>.
       </p>
@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/EcsTaskProperties.java