// 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 control plane will be impacted during the upgrade. */
public final class ControlImpact extends ExpandableStringEnum<ControlImpact> {
    /** Static value True for ControlImpact. */
    public static final ControlImpact TRUE = fromString("True");

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

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

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

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