public CreateAutomationRuleRequest withActions(AutomationRulesAction... actions) {
        if (this.actions == null) {
            setActions(new java.util.ArrayList<AutomationRulesAction>(actions.length));
        }
        for (AutomationRulesAction ele : actions) {
            this.actions.add(ele);
        }
        return this;
    }
<p>
One or more actions to update finding fields if a finding matches the conditions specified in
<code>Criteria</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override
the existing values.
</p>

@param actions
       One or more actions to update finding fields if a finding matches the conditions specified in
       <code>Criteria</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/CreateAutomationRuleRequest.java