public WorldExportJobSummary withWorlds(String... worlds) {
        if (this.worlds == null) {
            setWorlds(new java.util.ArrayList<String>(worlds.length));
        }
        for (String ele : worlds) {
            this.worlds.add(ele);
        }
        return this;
    }
<p>
A list of worlds.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setWorlds(java.util.Collection)} or {@link #withWorlds(java.util.Collection)} if you want to override the
existing values.
</p>

@param worlds
       A list of worlds.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-robomaker/src/main/java/com/amazonaws/services/robomaker/model/WorldExportJobSummary.java