public AlarmHistoryItem withAlarmType(String alarmType) {
        setAlarmType(alarmType);
        return this;
    }
<p>
The type of alarm, either metric alarm or composite alarm.
</p>

@param alarmType
       The type of alarm, either metric alarm or composite alarm.
@return Returns a reference to this object so that method calls can be chained together.
@see AlarmType
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/AlarmHistoryItem.java