public RegisterTaskDefinitionRequest withExecutionRoleArn(String executionRoleArn) {
        setExecutionRoleArn(executionRoleArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission
to make Amazon Web Services API calls on your behalf. The task execution IAM role is required depending on the
requirements of your task. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html">Amazon ECS task
execution IAM role</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>

@param executionRoleArn
       The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent
       permission to make Amazon Web Services API calls on your behalf. The task execution IAM role is required
       depending on the requirements of your task. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html">Amazon ECS
       task execution IAM role</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