public CreateScanResult withScanState(String scanState) {
        setScanState(scanState);
        return this;
    }
<p>
The current state of the scan. Returns either <code>InProgress</code>, <code>Successful</code>, or
<code>Failed</code>.
</p>

@param scanState
       The current state of the scan. Returns either <code>InProgress</code>, <code>Successful</code>, or
       <code>Failed</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ScanState
aws-java-sdk-codegurusecurity/src/main/java/com/amazonaws/services/codegurusecurity/model/CreateScanResult.java