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

package com.azure.resourcemanager.resources.models;

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

/** The operation type for the patch API. */
public final class TagsPatchOperation extends ExpandableStringEnum<TagsPatchOperation> {
    /** Static value Replace for TagsPatchOperation. */
    public static final TagsPatchOperation REPLACE = fromString("Replace");

    /** Static value Merge for TagsPatchOperation. */
    public static final TagsPatchOperation MERGE = fromString("Merge");

    /** Static value Delete for TagsPatchOperation. */
    public static final TagsPatchOperation DELETE = fromString("Delete");

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

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

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