// 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 ResourceDeletionPolicy. */
public final class ResourceDeletionPolicy extends ExpandableStringEnum<ResourceDeletionPolicy> {
    /** Static value NotSpecified for ResourceDeletionPolicy. */
    public static final ResourceDeletionPolicy NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value CascadeDeleteAll for ResourceDeletionPolicy. */
    public static final ResourceDeletionPolicy CASCADE_DELETE_ALL = fromString("CascadeDeleteAll");

    /** Static value CascadeDeleteProxyOnlyChildren for ResourceDeletionPolicy. */
    public static final ResourceDeletionPolicy CASCADE_DELETE_PROXY_ONLY_CHILDREN =
        fromString("CascadeDeleteProxyOnlyChildren");

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

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

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