public Target withEcsParameters(EcsParameters ecsParameters) {
        setEcsParameters(ecsParameters);
        return this;
    }
<p>
Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. For
more information about Amazon ECS tasks, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a> in
the <i>Amazon EC2 Container Service Developer Guide</i>.
</p>

@param ecsParameters
       Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS
       task. For more information about Amazon ECS tasks, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions
       </a> in the <i>Amazon EC2 Container Service Developer Guide</i>.
@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/Target.java