public void setPlatforms(java.util.Collection<ComponentPlatform> platforms) {
        if (platforms == null) {
            this.platforms = null;
            return;
        }

        this.platforms = new java.util.ArrayList<ComponentPlatform>(platforms);
    }
<p>
The platforms that the component version supports.
</p>

@param platforms
       The platforms that the component version supports.
aws-java-sdk-greengrassv2/src/main/java/com/amazonaws/services/greengrassv2/model/DescribeComponentResult.java