// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.cosmos.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Type of the Trigger. */
public final class TriggerType extends ExpandableStringEnum<TriggerType> {
    /** Static value Pre for TriggerType. */
    public static final TriggerType PRE = fromString("Pre");

    /** Static value Post for TriggerType. */
    public static final TriggerType POST = fromString("Post");

    /**
     * Creates a new instance of TriggerType value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public TriggerType() {
    }

    /**
     * Creates or finds a TriggerType from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding TriggerType.
     */
    @JsonCreator
    public static TriggerType fromString(String name) {
        return fromString(name, TriggerType.class);
    }

    /**
     * Gets known TriggerType values.
     *
     * @return known TriggerType values.
     */
    public static Collection<TriggerType> values() {
        return values(TriggerType.class);
    }
}
