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

package com.azure.resourcemanager.mobilenetwork.models;

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

/** Preemption vulnerability. */
public final class PreemptionVulnerability extends ExpandableStringEnum<PreemptionVulnerability> {
    /** Static value NotPreemptable for PreemptionVulnerability. */
    public static final PreemptionVulnerability NOT_PREEMPTABLE = fromString("NotPreemptable");

    /** Static value Preemptable for PreemptionVulnerability. */
    public static final PreemptionVulnerability PREEMPTABLE = fromString("Preemptable");

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

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

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