public BatchGetOnPremisesInstancesResult withInstanceInfos(java.util.Collection<InstanceInfo> instanceInfos) {
        setInstanceInfos(instanceInfos);
        return this;
    }
<p>
Information about the on-premises instances.
</p>

@param instanceInfos
       Information about the on-premises instances.
@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/BatchGetOnPremisesInstancesResult.java