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

package com.azure.resourcemanager.containerregistry.models;

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

/**
 * When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the
 * operation before any copying begins.
 */
public final class ImportMode extends ExpandableStringEnum<ImportMode> {
    /** Static value NoForce for ImportMode. */
    public static final ImportMode NO_FORCE = fromString("NoForce");

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

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

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

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