public SearchCasesResult withCases(SearchCasesResponseItem... cases) {
        if (this.cases == null) {
            setCases(new java.util.ArrayList<SearchCasesResponseItem>(cases.length));
        }
        for (SearchCasesResponseItem ele : cases) {
            this.cases.add(ele);
        }
        return this;
    }
<p>
A list of case documents where each case contains the properties <code>CaseId</code> and <code>Fields</code>
where each field is a complex union structure.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCases(java.util.Collection)} or {@link #withCases(java.util.Collection)} if you want to override the
existing values.
</p>

@param cases
       A list of case documents where each case contains the properties <code>CaseId</code> and
       <code>Fields</code> where each field is a complex union structure.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connectcases/src/main/java/com/amazonaws/services/connectcases/model/SearchCasesResult.java