public TestCaseFilter withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
The status used to filter test cases. A <code>TestCaseFilter</code> can have one status. Valid values are:
</p>
<ul>
<li>
<p>
<code>SUCCEEDED</code>
</p>
</li>
<li>
<p>
<code>FAILED</code>
</p>
</li>
<li>
<p>
<code>ERROR</code>
</p>
</li>
<li>
<p>
<code>SKIPPED</code>
</p>
</li>
<li>
<p>
<code>UNKNOWN</code>
</p>
</li>
</ul>

@param status
       The status used to filter test cases. A <code>TestCaseFilter</code> can have one status. Valid values
       are:</p>
       <ul>
       <li>
       <p>
       <code>SUCCEEDED</code>
       </p>
       </li>
       <li>
       <p>
       <code>FAILED</code>
       </p>
       </li>
       <li>
       <p>
       <code>ERROR</code>
       </p>
       </li>
       <li>
       <p>
       <code>SKIPPED</code>
       </p>
       </li>
       <li>
       <p>
       <code>UNKNOWN</code>
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/TestCaseFilter.java