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

package com.azure.resourcemanager.providerhub.models;

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

/** Defines values for ManifestResourceDeletionPolicy. */
public final class ManifestResourceDeletionPolicy extends ExpandableStringEnum<ManifestResourceDeletionPolicy> {
    /** Static value NotSpecified for ManifestResourceDeletionPolicy. */
    public static final ManifestResourceDeletionPolicy NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value Cascade for ManifestResourceDeletionPolicy. */
    public static final ManifestResourceDeletionPolicy CASCADE = fromString("Cascade");

    /** Static value Force for ManifestResourceDeletionPolicy. */
    public static final ManifestResourceDeletionPolicy FORCE = fromString("Force");

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

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

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