public GetQueryResultsResult withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
The status of the most recent running of the query. Possible values are <code>Cancelled</code>,
<code>Complete</code>, <code>Failed</code>, <code>Running</code>, <code>Scheduled</code>, <code>Timeout</code>,
and <code>Unknown</code>.
</p>
<p>
Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being
searched or partition your query into a number of queries.
</p>

@param status
       The status of the most recent running of the query. Possible values are <code>Cancelled</code>,
       <code>Complete</code>, <code>Failed</code>, <code>Running</code>, <code>Scheduled</code>,
       <code>Timeout</code>, and <code>Unknown</code>.</p>
       <p>
       Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range
       being searched or partition your query into a number of queries.
@return Returns a reference to this object so that method calls can be chained together.
@see QueryStatus
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/GetQueryResultsResult.java