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

package com.azure.resourcemanager.containerservicefleet.models;

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

/** The type of upgrade to perform when targeting ManagedClusters. */
public final class ManagedClusterUpgradeType extends ExpandableStringEnum<ManagedClusterUpgradeType> {
    /** Static value Full for ManagedClusterUpgradeType. */
    public static final ManagedClusterUpgradeType FULL = fromString("Full");

    /** Static value NodeImageOnly for ManagedClusterUpgradeType. */
    public static final ManagedClusterUpgradeType NODE_IMAGE_ONLY = fromString("NodeImageOnly");

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

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

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