public CreateDetectorVersionRequest withRuleExecutionMode(String ruleExecutionMode) {
        setRuleExecutionMode(ruleExecutionMode);
        return this;
    }
<p>
The rule execution mode for the rules included in the detector version.
</p>
<p>
You can define and edit the rule mode at the detector version level, when it is in draft status.
</p>
<p>
If you specify <code>FIRST_MATCHED</code>, Amazon Fraud Detector evaluates rules sequentially, first to last,
stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.
</p>
<p>
If you specifiy <code>ALL_MATCHED</code>, Amazon Fraud Detector evaluates all rules and returns the outcomes for
all matched rules.
</p>
<p>
The default behavior is <code>FIRST_MATCHED</code>.
</p>

@param ruleExecutionMode
       The rule execution mode for the rules included in the detector version.</p>
       <p>
       You can define and edit the rule mode at the detector version level, when it is in draft status.
       </p>
       <p>
       If you specify <code>FIRST_MATCHED</code>, Amazon Fraud Detector evaluates rules sequentially, first to
       last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that
       single rule.
       </p>
       <p>
       If you specifiy <code>ALL_MATCHED</code>, Amazon Fraud Detector evaluates all rules and returns the
       outcomes for all matched rules.
       </p>
       <p>
       The default behavior is <code>FIRST_MATCHED</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see RuleExecutionMode
aws-java-sdk-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/CreateDetectorVersionRequest.java