public DescribeComponentResult withPlatforms(ComponentPlatform... platforms) {
        if (this.platforms == null) {
            setPlatforms(new java.util.ArrayList<ComponentPlatform>(platforms.length));
        }
        for (ComponentPlatform ele : platforms) {
            this.platforms.add(ele);
        }
        return this;
    }
<p>
The platforms that the component version supports.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPlatforms(java.util.Collection)} or {@link #withPlatforms(java.util.Collection)} if you want to
override the existing values.
</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/DescribeComponentResult.java