'Returns state (as ApiCronJob.State) of an AFF4 cron job object.'

def _GetCronJobState(self, cron_job):

    if cron_job.Get(cron_job.Schema.DISABLED):
        return ApiCronJob.State.DISABLED
    else:
        return ApiCronJob.State.ENABLED
