// 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;

/** Defines values for ImportMode. */
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 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);
    }
}
