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

package com.azure.resourcemanager.avs.models;

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

/** Trial status. */
public final class TrialStatus extends ExpandableStringEnum<TrialStatus> {
    /** Static value TrialAvailable for TrialStatus. */
    public static final TrialStatus TRIAL_AVAILABLE = fromString("TrialAvailable");

    /** Static value TrialUsed for TrialStatus. */
    public static final TrialStatus TRIAL_USED = fromString("TrialUsed");

    /** Static value TrialDisabled for TrialStatus. */
    public static final TrialStatus TRIAL_DISABLED = fromString("TrialDisabled");

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

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

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