public ListGatewayInstancesResult withInstances(ListedGatewayInstance... instances) {
        if (this.instances == null) {
            setInstances(new java.util.ArrayList<ListedGatewayInstance>(instances.length));
        }
        for (ListedGatewayInstance ele : instances) {
            this.instances.add(ele);
        }
        return this;
    }
A list of instance summaries.
<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
       A list of instance summaries.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/ListGatewayInstancesResult.java