// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.quantum.jobs.models;

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

/** Defines values for ProviderAvailability. */
public final class ProviderAvailability extends ExpandableStringEnum<ProviderAvailability> {
    /** Static value Available for ProviderAvailability. */
    public static final ProviderAvailability AVAILABLE = fromString("Available");

    /** Static value Degraded for ProviderAvailability. */
    public static final ProviderAvailability DEGRADED = fromString("Degraded");

    /** Static value Unavailable for ProviderAvailability. */
    public static final ProviderAvailability UNAVAILABLE = fromString("Unavailable");

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

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