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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** If the current version is in use. */
public final class IsCurrentVersion extends ExpandableStringEnum<IsCurrentVersion> {
    /** Static value true for IsCurrentVersion. */
    public static final IsCurrentVersion TRUE = fromString("true");

    /** Static value false for IsCurrentVersion. */
    public static final IsCurrentVersion FALSE = fromString("false");

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

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

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