public CreateRuleRequest withFunction(String function) {
        setFunction(function);
        return this;
    }
<p>
The conditions of the rule.
</p>

@param function
       The conditions of the rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleRequest.java