public ListGroupResourcesResult withQueryErrors(QueryError... queryErrors) {
        if (this.queryErrors == null) {
            setQueryErrors(new java.util.ArrayList<QueryError>(queryErrors.length));
        }
        for (QueryError ele : queryErrors) {
            this.queryErrors.add(ele);
        }
        return this;
    }
<p>
A list of <code>QueryError</code> objects. Each error contains an <code>ErrorCode</code> and <code>Message</code>
. Possible values for ErrorCode are <code>CLOUDFORMATION_STACK_INACTIVE</code>,
<code>CLOUDFORMATION_STACK_NOT_EXISTING</code>, <code>CLOUDFORMATION_STACK_UNASSUMABLE_ROLE</code> and
<code>RESOURCE_TYPE_NOT_SUPPORTED</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setQueryErrors(java.util.Collection)} or {@link #withQueryErrors(java.util.Collection)} if you want to
override the existing values.
</p>

@param queryErrors
       A list of <code>QueryError</code> objects. Each error contains an <code>ErrorCode</code> and
       <code>Message</code>. Possible values for ErrorCode are <code>CLOUDFORMATION_STACK_INACTIVE</code>,
       <code>CLOUDFORMATION_STACK_NOT_EXISTING</code>, <code>CLOUDFORMATION_STACK_UNASSUMABLE_ROLE</code> and
       <code>RESOURCE_TYPE_NOT_SUPPORTED</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourcegroups/src/main/java/com/amazonaws/services/resourcegroups/model/ListGroupResourcesResult.java