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

package com.azure.resourcemanager.servicefabric.models;

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

/** The activation Mode of the service package. */
public final class ArmUpgradeFailureAction extends ExpandableStringEnum<ArmUpgradeFailureAction> {
    /** Static value Rollback for ArmUpgradeFailureAction. */
    public static final ArmUpgradeFailureAction ROLLBACK = fromString("Rollback");

    /** Static value Manual for ArmUpgradeFailureAction. */
    public static final ArmUpgradeFailureAction MANUAL = fromString("Manual");

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

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

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