public CancelQueryRequest withQueryId(String queryId) {
        setQueryId(queryId);
        return this;
    }
<p>
The ID of the query that needs to be cancelled. <code>QueryID</code> is returned as part of the query result.
</p>

@param queryId
       The ID of the query that needs to be cancelled. <code>QueryID</code> is returned as part of the query
       result.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-timestreamquery/src/main/java/com/amazonaws/services/timestreamquery/model/CancelQueryRequest.java