BlobIndexerImageAction.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 BlobIndexerImageAction. */
public final class BlobIndexerImageAction extends ExpandableStringEnum<BlobIndexerImageAction> {
    /** Static value none for BlobIndexerImageAction. */
    public static final BlobIndexerImageAction NONE = fromString("none");

    /** Static value generateNormalizedImages for BlobIndexerImageAction. */
    public static final BlobIndexerImageAction GENERATE_NORMALIZED_IMAGES = fromString("generateNormalizedImages");

    /** Static value generateNormalizedImagePerPage for BlobIndexerImageAction. */
    public static final BlobIndexerImageAction GENERATE_NORMALIZED_IMAGE_PER_PAGE =
            fromString("generateNormalizedImagePerPage");

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

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