// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

package com.azure.search.documents.indexes.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/** Details the status of an individual indexer execution. */
public final class IndexerExecutionStatusDetail extends ExpandableStringEnum<IndexerExecutionStatusDetail> {
    /** Indicates that the reset that occurred was for a call to ResetDocs. */
    public static final IndexerExecutionStatusDetail RESET_DOCS = fromString("resetDocs");

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

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

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