public Finding withDetectorId(String detectorId) {
        setDetectorId(detectorId);
        return this;
    }
<p>
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on
industry standards and AWS best practices.
</p>

@param detectorId
       The identifier for the detector that detected the finding in your code. A detector is a defined rule based
       on industry standards and AWS best practices.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codegurusecurity/src/main/java/com/amazonaws/services/codegurusecurity/model/Finding.java