public BatchGetOnPremisesInstancesRequest withInstanceNames(java.util.Collection<String> instanceNames) {
        setInstanceNames(instanceNames);
        return this;
    }
<p>
The names of the on-premises instances about which to get information. The maximum number of instance names you
can specify is 25.
</p>

@param instanceNames
       The names of the on-premises instances about which to get information. The maximum number of instance
       names you can specify is 25.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/BatchGetOnPremisesInstancesRequest.java