public ComponentLatestVersion withPlatforms(java.util.Collection<ComponentPlatform> platforms) {
        setPlatforms(platforms);
        return this;
    }
<p>
The platforms that the component version supports.
</p>

@param platforms
       The platforms that the component version supports.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-greengrassv2/src/main/java/com/amazonaws/services/greengrassv2/model/ComponentLatestVersion.java