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

package com.azure.resourcemanager.synapse.models;

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

/** The default principals modification kind. */
public final class DefaultPrincipalsModificationKind extends ExpandableStringEnum<DefaultPrincipalsModificationKind> {
    /** Static value Union for DefaultPrincipalsModificationKind. */
    public static final DefaultPrincipalsModificationKind UNION = fromString("Union");

    /** Static value Replace for DefaultPrincipalsModificationKind. */
    public static final DefaultPrincipalsModificationKind REPLACE = fromString("Replace");

    /** Static value None for DefaultPrincipalsModificationKind. */
    public static final DefaultPrincipalsModificationKind NONE = fromString("None");

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

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

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