public void setInstanceNames(java.util.Collection<String> instanceNames) {
        if (instanceNames == null) {
            this.instanceNames = null;
            return;
        }

        this.instanceNames = new com.amazonaws.internal.SdkInternalList<String>(instanceNames);
    }
<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.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/BatchGetOnPremisesInstancesRequest.java