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

package com.azure.resourcemanager.machinelearningservices.models;

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

/** Defines values for VariantType. */
public final class VariantType extends ExpandableStringEnum<VariantType> {
    /** Static value Control for VariantType. */
    public static final VariantType CONTROL = fromString("Control");

    /** Static value Treatment for VariantType. */
    public static final VariantType TREATMENT = fromString("Treatment");

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

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