IndexerExecutionStatusDetail.java

// 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 com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for IndexerExecutionStatusDetail. */
public final class IndexerExecutionStatusDetail extends ExpandableStringEnum<IndexerExecutionStatusDetail> {
    /** Static value resetDocs for IndexerExecutionStatusDetail. */
    public static final IndexerExecutionStatusDetail RESET_DOCS = fromString("resetDocs");

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

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