public Task withPlatformFamily(String platformFamily) {
        setPlatformFamily(platformFamily);
        return this;
    }
<p>
The operating system that your tasks are running on. A platform family is specified only for tasks that use the
Fargate launch type.
</p>
<p>
All tasks that run as part of this service must use the same <code>platformFamily</code> value as the service
(for example, <code>LINUX.</code>).
</p>

@param platformFamily
       The operating system that your tasks are running on. A platform family is specified only for tasks that
       use the Fargate launch type. </p>
       <p>
       All tasks that run as part of this service must use the same <code>platformFamily</code> value as the
       service (for example, <code>LINUX.</code>).
@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