public Task withPlatformVersion(String platformVersion) {
        setPlatformVersion(platformVersion);
        return this;
    }
<p>
The platform version where your task runs on. A platform version is only specified for tasks that use the Fargate
launch type. If you didn't specify one, the <code>LATEST</code> platform version is used. For more information,
see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate Platform
Versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>

@param platformVersion
       The platform version where your task runs on. A platform version is only specified for tasks that use the
       Fargate launch type. If you didn't specify one, the <code>LATEST</code> platform version is used. For more
       information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate Platform
       Versions</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/Task.java