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

package com.azure.resourcemanager.securityinsights.models;

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

/** Describes how to ingest the records in the file. */
public final class IngestionMode extends ExpandableStringEnum<IngestionMode> {
    /** Static value IngestOnlyIfAllAreValid for IngestionMode. */
    public static final IngestionMode INGEST_ONLY_IF_ALL_ARE_VALID = fromString("IngestOnlyIfAllAreValid");

    /** Static value IngestAnyValidRecords for IngestionMode. */
    public static final IngestionMode INGEST_ANY_VALID_RECORDS = fromString("IngestAnyValidRecords");

    /** Static value Unspecified for IngestionMode. */
    public static final IngestionMode UNSPECIFIED = fromString("Unspecified");

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

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