// 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 JobLimitsType. */
public final class JobLimitsType extends ExpandableStringEnum<JobLimitsType> {
    /** Static value Command for JobLimitsType. */
    public static final JobLimitsType COMMAND = fromString("Command");

    /** Static value Sweep for JobLimitsType. */
    public static final JobLimitsType SWEEP = fromString("Sweep");

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

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

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