public CodeVulnerabilityDetails withRuleId(String ruleId) {
        setRuleId(ruleId);
        return this;
    }
<p>
The identifier for a rule that was used to detect the code vulnerability.
</p>

@param ruleId
       The identifier for a rule that was used to detect the code vulnerability.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/CodeVulnerabilityDetails.java