public CreateInstancesRequest withInstanceNames(java.util.Collection<String> instanceNames) {
        setInstanceNames(instanceNames);
        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>

@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