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

package com.azure.resourcemanager.datafactory.models;

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

/** Indicates whether the RejectValue property is specified as a literal value or a percentage. */
public final class PolybaseSettingsRejectType extends ExpandableStringEnum<PolybaseSettingsRejectType> {
    /** Static value value for PolybaseSettingsRejectType. */
    public static final PolybaseSettingsRejectType VALUE = fromString("value");

    /** Static value percentage for PolybaseSettingsRejectType. */
    public static final PolybaseSettingsRejectType PERCENTAGE = fromString("percentage");

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

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

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