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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/** License type. */
public final class LicenseType extends ExpandableStringEnum<LicenseType> {
    /** Static value NotSpecified for LicenseType. */
    public static final LicenseType NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value NoLicenseType for LicenseType. */
    public static final LicenseType NO_LICENSE_TYPE = fromString("NoLicenseType");

    /** Static value WindowsServer for LicenseType. */
    public static final LicenseType WINDOWS_SERVER = fromString("WindowsServer");

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

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

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