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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/**
 * Tiering Mode to control automatic tiering of recovery points. Supported values are: 1. TierRecommended: Tier all
 * recovery points recommended to be tiered 2. TierAfter: Tier all recovery points after a fixed period, as specified in
 * duration + durationType below. 3. DoNotTier: Do not tier any recovery points.
 */
public final class TieringMode extends ExpandableStringEnum<TieringMode> {
    /** Static value Invalid for TieringMode. */
    public static final TieringMode INVALID = fromString("Invalid");

    /** Static value TierRecommended for TieringMode. */
    public static final TieringMode TIER_RECOMMENDED = fromString("TierRecommended");

    /** Static value TierAfter for TieringMode. */
    public static final TieringMode TIER_AFTER = fromString("TierAfter");

    /** Static value DoNotTier for TieringMode. */
    public static final TieringMode DO_NOT_TIER = fromString("DoNotTier");

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

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

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