public void setCases(java.util.Collection<SearchCasesResponseItem> cases) {
        if (cases == null) {
            this.cases = null;
            return;
        }

        this.cases = new java.util.ArrayList<SearchCasesResponseItem>(cases);
    }
<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>

@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.
aws-java-sdk-connectcases/src/main/java/com/amazonaws/services/connectcases/model/SearchCasesResult.java