public ListInstancesResult withInstances(InstanceSummary... instances) {
        if (this.instances == null) {
            setInstances(new java.util.ArrayList<InstanceSummary>(instances.length));
        }
        for (InstanceSummary ele : instances) {
            this.instances.add(ele);
        }
        return this;
    }
public ListInstancesResult withInstances ( InstanceSummary ... instances ) { if ( this . instances == null ) { setInstances ( new java . util . ArrayList < InstanceSummary > ( instances . length ) ) ; } for ( InstanceSummary ele : instances ) { this . instances . add ( ele ) ; } return this ; }
<p>
Summary information about the instances that are associated with the specified service.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstances(java.util.Collection)} or {@link #withInstances(java.util.Collection)} if you want to
override the existing values.
</p>

@param instances
Summary information about the instances that are associated with the specified service.
@return Returns a reference to this object so that method calls can be chained together.