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

/** The write behavior for the operation. Default is Insert. */
public final class SalesforceSinkWriteBehavior extends ExpandableStringEnum<SalesforceSinkWriteBehavior> {
    /** Static value Insert for SalesforceSinkWriteBehavior. */
    public static final SalesforceSinkWriteBehavior INSERT = fromString("Insert");

    /** Static value Upsert for SalesforceSinkWriteBehavior. */
    public static final SalesforceSinkWriteBehavior UPSERT = fromString("Upsert");

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

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

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