public void setAlarms(java.util.Collection<Alarm> alarms) {
        if (alarms == null) {
            this.alarms = null;
            return;
        }

        this.alarms = new java.util.ArrayList<Alarm>(alarms);
    }
<p>
An array of objects that describe the alarms.
</p>

@param alarms
       An array of objects that describe the alarms.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetAlarmsResult.java