public ListInstancesResult withInstances(java.util.Collection<Instance> instances) {
        setInstances(instances);
        return this;
    }
<p>
The list of instances for the cluster and given filters.
</p>

@param instances
       The list of instances for the cluster and given filters.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/ListInstancesResult.java