@classmethod
def get(cls, alarm: int):
    """
        Get the attribute of this enum for an alarm number.

        :param alarm: the alarm number
        :return: the enum for the desired alarm number
        """
    try:
        return getattr(cls, 'Alarm{}'.format(alarm))
    except AttributeError:
        return cls.not_defined
