public GetAlarmsResult withAlarms(java.util.Collection<Alarm> alarms) {
        setAlarms(alarms);
        return this;
    }
<p>
An array of objects that describe the alarms.
</p>

@param alarms
       An array of objects that describe the alarms.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetAlarmsResult.java