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

package com.azure.resourcemanager.machinelearning.models;

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

/** Defines values for SamplingAlgorithmType. */
public final class SamplingAlgorithmType extends ExpandableStringEnum<SamplingAlgorithmType> {
    /** Static value Grid for SamplingAlgorithmType. */
    public static final SamplingAlgorithmType GRID = fromString("Grid");

    /** Static value Random for SamplingAlgorithmType. */
    public static final SamplingAlgorithmType RANDOM = fromString("Random");

    /** Static value Bayesian for SamplingAlgorithmType. */
    public static final SamplingAlgorithmType BAYESIAN = fromString("Bayesian");

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

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

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