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

package com.azure.resourcemanager.devhub.models;

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

/** The mode of generation to be used for generating Manifest. */
public final class ManifestGenerationMode extends ExpandableStringEnum<ManifestGenerationMode> {
    /** Static value enabled for ManifestGenerationMode. */
    public static final ManifestGenerationMode ENABLED = fromString("enabled");

    /** Static value disabled for ManifestGenerationMode. */
    public static final ManifestGenerationMode DISABLED = fromString("disabled");

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

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

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