public PutCompositeAlarmRequest withAlarmActions(String... alarmActions) {
        if (this.alarmActions == null) {
            setAlarmActions(new com.amazonaws.internal.SdkInternalList<String>(alarmActions.length));
        }
        for (String ele : alarmActions) {
            this.alarmActions.add(ele);
        }
        return this;
    }
<p>
The actions to execute when this alarm transitions to the <code>ALARM</code> state from any other state. Each
action is specified as an Amazon Resource Name (ARN).
</p>
<p>
Valid Values: ]
</p>
<p>
<b>Amazon SNS actions:</b>
</p>
<p>
<code>arn:aws:sns:<i>region</i>:<i>account-id</i>:<i>sns-topic-name</i> </code>
</p>
<p>
<b>Lambda actions:</b>
</p>
<ul>
<li>
<p>
Invoke the latest version of a Lambda function:
<code>arn:aws:lambda:<i>region</i>:<i>account-id</i>:function:<i>function-name</i> </code>
</p>
</li>
<li>
<p>
Invoke a specific version of a Lambda function:
<code>arn:aws:lambda:<i>region</i>:<i>account-id</i>:function:<i>function-name</i>:<i>version-number</i> </code>
</p>
</li>
<li>
<p>
Invoke a function by using an alias Lambda function:
<code>arn:aws:lambda:<i>region</i>:<i>account-id</i>:function:<i>function-name</i>:<i>alias-name</i> </code>
</p>
</li>
</ul>
<p>
<b>Systems Manager actions:</b>
</p>
<p>
<code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:opsitem:<i>severity</i> </code>
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAlarmActions(java.util.Collection)} or {@link #withAlarmActions(java.util.Collection)} if you want to
override the existing values.
</p>

@param alarmActions
       The actions to execute when this alarm transitions to the <code>ALARM</code> state from any other state.
       Each action is specified as an Amazon Resource Name (ARN).</p>
       <p>
       Valid Values: ]
       </p>
       <p>
       <b>Amazon SNS actions:</b>
       </p>
       <p>
       <code>arn:aws:sns:<i>region</i>:<i>account-id</i>:<i>sns-topic-name</i> </code>
       </p>
       <p>
       <b>Lambda actions:</b>
       </p>
       <ul>
       <li>
       <p>
       Invoke the latest version of a Lambda function:
       <code>arn:aws:lambda:<i>region</i>:<i>account-id</i>:function:<i>function-name</i> </code>
       </p>
       </li>
       <li>
       <p>
       Invoke a specific version of a Lambda function:
       <code>arn:aws:lambda:<i>region</i>:<i>account-id</i>:function:<i>function-name</i>:<i>version-number</i> </code>
       </p>
       </li>
       <li>
       <p>
       Invoke a function by using an alias Lambda function:
       <code>arn:aws:lambda:<i>region</i>:<i>account-id</i>:function:<i>function-name</i>:<i>alias-name</i> </code>
       </p>
       </li>
       </ul>
       <p>
       <b>Systems Manager actions:</b>
       </p>
       <p>
       <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:opsitem:<i>severity</i> </code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/PutCompositeAlarmRequest.java