<?php

// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

namespace Algolia\AlgoliaSearch\Model\Ingestion;

/**
 * TriggerType Class Doc Comment.
 *
 * @category Class
 *
 * @description Task trigger, describing when a task should run.  - `onDemand`.   Manually trigger the task with the `/run` endpoint.  - `schedule`.   Regularly trigger the task on a `cron` schedule.  - `subscription`.   Trigger the task after an event is received, such as, a webhook.  - `streaming`.   Run the task continuously.
 */
class TriggerType
{
    /**
     * Possible values of this enum.
     */
    public const ON_DEMAND = 'onDemand';

    public const SCHEDULE = 'schedule';

    public const SUBSCRIPTION = 'subscription';

    public const STREAMING = 'streaming';

    /**
     * Gets allowable values of the enum.
     *
     * @return string[]
     */
    public static function getAllowableEnumValues()
    {
        return [
            self::ON_DEMAND,
            self::SCHEDULE,
            self::SUBSCRIPTION,
            self::STREAMING,
        ];
    }
}
