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

package com.azure.resourcemanager.networkcloud.models;

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

/** The indicator of whether the workload will be impacted during the upgrade. */
public final class WorkloadImpact extends ExpandableStringEnum<WorkloadImpact> {
    /** Static value True for WorkloadImpact. */
    public static final WorkloadImpact TRUE = fromString("True");

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

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

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

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