"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScheduledSynchronizationSetting = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * A type of synchronization setting based on schedule
 *
 * Uses Azure REST API version 2021-08-01. In version 2.x of the Azure Native provider, it used API version 2021-08-01.
 */
class ScheduledSynchronizationSetting extends pulumi.CustomResource {
    /**
     * Get an existing ScheduledSynchronizationSetting resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new ScheduledSynchronizationSetting(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ScheduledSynchronizationSetting.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === ScheduledSynchronizationSetting.__pulumiType;
    }
    /**
     * Create a ScheduledSynchronizationSetting resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if (args?.accountName === undefined && !opts.urn) {
                throw new Error("Missing required property 'accountName'");
            }
            if (args?.kind === undefined && !opts.urn) {
                throw new Error("Missing required property 'kind'");
            }
            if (args?.recurrenceInterval === undefined && !opts.urn) {
                throw new Error("Missing required property 'recurrenceInterval'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.shareName === undefined && !opts.urn) {
                throw new Error("Missing required property 'shareName'");
            }
            if (args?.synchronizationTime === undefined && !opts.urn) {
                throw new Error("Missing required property 'synchronizationTime'");
            }
            resourceInputs["accountName"] = args?.accountName;
            resourceInputs["kind"] = "ScheduleBased";
            resourceInputs["recurrenceInterval"] = args?.recurrenceInterval;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["shareName"] = args?.shareName;
            resourceInputs["synchronizationSettingName"] = args?.synchronizationSettingName;
            resourceInputs["synchronizationTime"] = args?.synchronizationTime;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["createdAt"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["userName"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["createdAt"] = undefined /*out*/;
            resourceInputs["kind"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["recurrenceInterval"] = undefined /*out*/;
            resourceInputs["synchronizationTime"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["userName"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:datashare/v20181101preview:ScheduledSynchronizationSetting" }, { type: "azure-native:datashare/v20191101:ScheduledSynchronizationSetting" }, { type: "azure-native:datashare/v20200901:ScheduledSynchronizationSetting" }, { type: "azure-native:datashare/v20201001preview:ScheduledSynchronizationSetting" }, { type: "azure-native:datashare/v20210801:ScheduledSynchronizationSetting" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ScheduledSynchronizationSetting.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ScheduledSynchronizationSetting = ScheduledSynchronizationSetting;
/** @internal */
ScheduledSynchronizationSetting.__pulumiType = 'azure-native:datashare:ScheduledSynchronizationSetting';
//# sourceMappingURL=data:application/json;base64, 