public QueryField withType(String type) {
        setType(type);
        return this;
    }
<p>
The data type for a query field, which must correspond to the field you're defining for <code>QueryField</code>.
For example, if the query field name is <code>availability_score</code>, the data type is <code>float</code>.
</p>

@param type
       The data type for a query field, which must correspond to the field you're defining for
       <code>QueryField</code>. For example, if the query field name is <code>availability_score</code>, the data
       type is <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/QueryField.java