public Task withLaunchType(LaunchType launchType) {
        this.launchType = launchType.toString();
        return this;
    }
<p>
The infrastructure where your task runs on. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">Amazon ECS launch types</a>
in the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>

@param launchType
       The infrastructure where your task runs on. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">Amazon ECS launch
       types</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-ecs/src/main/java/com/amazonaws/services/ecs/model/Task.java