public Application withPlatforms(String... platforms) {
        if (this.platforms == null) {
            setPlatforms(new java.util.ArrayList<String>(platforms.length));
        }
        for (String ele : platforms) {
            this.platforms.add(ele);
        }
        return this;
    }
<p>
The platforms on which the application can run.
</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 on which the application can run.
@return Returns a reference to this object so that method calls can be chained together.
@see PlatformType
aws-java-sdk-appstream/src/main/java/com/amazonaws/services/appstream/model/Application.java