public CreateRuleRequest withOutcomes(String... outcomes) {
        if (this.outcomes == null) {
            setOutcomes(new java.util.ArrayList<String>(outcomes.length));
        }
        for (String ele : outcomes) {
            this.outcomes.add(ele);
        }
        return this;
    }
<p>
The outcome or outcomes returned when the rule expression matches.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setOutcomes(java.util.Collection)} or {@link #withOutcomes(java.util.Collection)} if you want to override
the existing values.
</p>

@param outcomes
       The outcome or outcomes returned when the rule expression matches.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/CreateRuleRequest.java