public TopicRule withActions(java.util.Collection<Action> actions) {
        setActions(actions);
        return this;
    }
<p>
The actions associated with the rule.
</p>

@param actions
       The actions associated with the rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/TopicRule.java