public AutomationExecution withTriggeredAlarms(AlarmStateInformation... triggeredAlarms) {
        if (this.triggeredAlarms == null) {
            setTriggeredAlarms(new com.amazonaws.internal.SdkInternalList<AlarmStateInformation>(triggeredAlarms.length));
        }
        for (AlarmStateInformation ele : triggeredAlarms) {
            this.triggeredAlarms.add(ele);
        }
        return this;
    }
<p>
The CloudWatch alarm that was invoked by the automation.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTriggeredAlarms(java.util.Collection)} or {@link #withTriggeredAlarms(java.util.Collection)} if you
want to override the existing values.
</p>

@param triggeredAlarms
       The CloudWatch alarm that was invoked by the automation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/AutomationExecution.java