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

    /** Static value Blocked for LinkedAction. */
    public static final LinkedAction BLOCKED = fromString("Blocked");

    /** Static value Validate for LinkedAction. */
    public static final LinkedAction VALIDATE = fromString("Validate");

    /** Static value Enabled for LinkedAction. */
    public static final LinkedAction ENABLED = fromString("Enabled");

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

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

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