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

package com.azure.resourcemanager.maintenance.models;

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

/** The impact type. */
public final class ImpactType extends ExpandableStringEnum<ImpactType> {
    /** Static value None for ImpactType. */
    public static final ImpactType NONE = fromString("None");

    /** Static value Freeze for ImpactType. */
    public static final ImpactType FREEZE = fromString("Freeze");

    /** Static value Restart for ImpactType. */
    public static final ImpactType RESTART = fromString("Restart");

    /** Static value Redeploy for ImpactType. */
    public static final ImpactType REDEPLOY = fromString("Redeploy");

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

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

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