public Service withPlatformVersion(String platformVersion) {
        setPlatformVersion(platformVersion);
        return this;
    }
<p>
The platform version to run your service on. A platform version is only specified for tasks that are hosted on
Fargate. If one isn't specified, 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 to run your service on. A platform version is only specified for tasks that are
       hosted on Fargate. If one isn't specified, 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/Service.java