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

package com.azure.resourcemanager.cognitiveservices.models;

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

/** Account hosting model. */
public final class HostingModel extends ExpandableStringEnum<HostingModel> {
    /** Static value Web for HostingModel. */
    public static final HostingModel WEB = fromString("Web");

    /** Static value ConnectedContainer for HostingModel. */
    public static final HostingModel CONNECTED_CONTAINER = fromString("ConnectedContainer");

    /** Static value DisconnectedContainer for HostingModel. */
    public static final HostingModel DISCONNECTED_CONTAINER = fromString("DisconnectedContainer");

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

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

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