public EcsParameters withTaskDefinitionArn(String taskDefinitionArn) {
        setTaskDefinitionArn(taskDefinitionArn);
        return this;
    }
<p>
The ARN of the task definition to use if the event target is an Amazon ECS task.
</p>

@param taskDefinitionArn
       The ARN of the task definition to use if the event target is an Amazon ECS task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/EcsParameters.java