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

package com.azure.resourcemanager.eventgrid.models;

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

/** Type of the custom mapping. */
public final class InputSchemaMappingType extends ExpandableStringEnum<InputSchemaMappingType> {
    /** Static value Json for InputSchemaMappingType. */
    public static final InputSchemaMappingType JSON = fromString("Json");

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

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

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