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

package com.azure.resourcemanager.timeseriesinsights.models;

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

/** The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". */
public final class IngressStartAtType extends ExpandableStringEnum<IngressStartAtType> {
    /** Static value EarliestAvailable for IngressStartAtType. */
    public static final IngressStartAtType EARLIEST_AVAILABLE = fromString("EarliestAvailable");

    /** Static value EventSourceCreationTime for IngressStartAtType. */
    public static final IngressStartAtType EVENT_SOURCE_CREATION_TIME = fromString("EventSourceCreationTime");

    /** Static value CustomEnqueuedTime for IngressStartAtType. */
    public static final IngressStartAtType CUSTOM_ENQUEUED_TIME = fromString("CustomEnqueuedTime");

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

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

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