public ConfigRule withEvaluationModes(java.util.Collection<EvaluationModeConfiguration> evaluationModes) {
        setEvaluationModes(evaluationModes);
        return this;
    }
<p>
The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is
Detective evaluation mode only.
</p>

@param evaluationModes
       The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the
       value is Detective evaluation mode only.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/ConfigRule.java