public Application withPlatforms(PlatformType... platforms) {
        java.util.ArrayList<String> platformsCopy = new java.util.ArrayList<String>(platforms.length);
        for (PlatformType value : platforms) {
            platformsCopy.add(value.toString());
        }
        if (getPlatforms() == null) {
            setPlatforms(platformsCopy);
        } else {
            getPlatforms().addAll(platformsCopy);
        }
        return this;
    }
<p>
The platforms on which the application can run.
</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