public void setFields(java.util.Collection<SearchField> fields) {
        if (fields == null) {
            this.fields = null;
            return;
        }

        this.fields = new java.util.ArrayList<SearchField>(fields);
    }
<p>
A list of the <code>Field</code> objects in the channel being searched.
</p>

@param fields
       A list of the <code>Field</code> objects in the channel being searched.
aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/SearchChannelsRequest.java