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

package com.azure.resourcemanager.cdn.models;

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

/** The level at which the content needs to be cached. */
public final class CacheType extends ExpandableStringEnum<CacheType> {
    /** Static value All for CacheType. */
    public static final CacheType ALL = fromString("All");

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

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