public GetQueryResultsResult withFields(java.util.Collection<QueryField> fields) {
        setFields(fields);
        return this;
    }
<p>
The fields that the query returns data for. Fields are name-data type pairs, such as
<code>availability_score</code>-<code>float</code>.
</p>

@param fields
       The fields that the query returns data for. Fields are name-data type pairs, such as
       <code>availability_score</code>-<code>float</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-internetmonitor/src/main/java/com/amazonaws/services/internetmonitor/model/GetQueryResultsResult.java