public RegisterTaskDefinitionRequest withTaskRoleArn(String taskRoleArn) {
        setTaskRoleArn(taskRoleArn);
        return this;
    }
<p>
The short name or full Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All
containers in this task are granted the permissions that are specified in this role. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html">IAM Roles for Tasks</a> in
the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>

@param taskRoleArn
       The short name or full Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.
       All containers in this task are granted the permissions that are specified in this role. For more
       information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html">IAM Roles for
       Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/RegisterTaskDefinitionRequest.java