public CreateInstancesRequest withInstanceNames(String... instanceNames) {
        if (this.instanceNames == null) {
            setInstanceNames(new java.util.ArrayList<String>(instanceNames.length));
        }
        for (String ele : instanceNames) {
            this.instanceNames.add(ele);
        }
        return this;
    }
<p>
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for
example: <code>["MyFirstInstance","MySecondInstance"]</code>
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstanceNames(java.util.Collection)} or {@link #withInstanceNames(java.util.Collection)} if you want
to override the existing values.
</p>

@param instanceNames
       The names to use for your new Lightsail instances. Separate multiple values using quotation marks and
       commas, for example: <code>["MyFirstInstance","MySecondInstance"]</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/CreateInstancesRequest.java