// 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;

/** A string indicating which domain-specific details to return. */
public final class ImageDetail extends ExpandableStringEnum<ImageDetail> {
    /** Details recognized as celebrities. */
    public static final ImageDetail CELEBRITIES = fromString("celebrities");

    /** Details recognized as landmarks. */
    public static final ImageDetail LANDMARKS = fromString("landmarks");

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

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

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