public BatchGetOnPremisesInstancesResult withInstanceInfos(InstanceInfo... instanceInfos) {
        if (this.instanceInfos == null) {
            setInstanceInfos(new com.amazonaws.internal.SdkInternalList<InstanceInfo>(instanceInfos.length));
        }
        for (InstanceInfo ele : instanceInfos) {
            this.instanceInfos.add(ele);
        }
        return this;
    }
<p>
Information about the on-premises instances.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstanceInfos(java.util.Collection)} or {@link #withInstanceInfos(java.util.Collection)} if you want
to override the existing values.
</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