public EcsParameters withLaunchType(String launchType) {
        setLaunchType(launchType);
        return this;
    }
<p>
Specifies the launch type on which your task is running. The launch type that you specify here must match one of
the launch type (compatibilities) of the target task. The <code>FARGATE</code> value is supported only in the
Regions where Fargate with Amazon ECS is supported. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">Fargate on Amazon ECS</a> in
the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>

@param launchType
       Specifies the launch type on which your task is running. The launch type that you specify here must match
       one of the launch type (compatibilities) of the target task. The <code>FARGATE</code> value is supported
       only in the Regions where Fargate with Amazon ECS is supported. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">Fargate on Amazon
       ECS</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.
@see LaunchType
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/EcsParameters.java