"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.BandwidthSchedule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The bandwidth schedule details.
 *
 * Uses Azure REST API version 2023-07-01. In version 2.x of the Azure Native provider, it used API version 2022-03-01.
 *
 * Other available API versions: 2022-03-01, 2022-04-01-preview, 2022-12-01-preview, 2023-01-01-preview, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native databoxedge [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class BandwidthSchedule extends pulumi.CustomResource {
    /**
     * Get an existing BandwidthSchedule 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 BandwidthSchedule(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of BandwidthSchedule.  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'] === BandwidthSchedule.__pulumiType;
    }
    /**
     * Create a BandwidthSchedule 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?.days === undefined && !opts.urn) {
                throw new Error("Missing required property 'days'");
            }
            if (args?.deviceName === undefined && !opts.urn) {
                throw new Error("Missing required property 'deviceName'");
            }
            if (args?.rateInMbps === undefined && !opts.urn) {
                throw new Error("Missing required property 'rateInMbps'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.start === undefined && !opts.urn) {
                throw new Error("Missing required property 'start'");
            }
            if (args?.stop === undefined && !opts.urn) {
                throw new Error("Missing required property 'stop'");
            }
            resourceInputs["days"] = args?.days;
            resourceInputs["deviceName"] = args?.deviceName;
            resourceInputs["name"] = args?.name;
            resourceInputs["rateInMbps"] = args?.rateInMbps;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["start"] = args?.start;
            resourceInputs["stop"] = args?.stop;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["days"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["rateInMbps"] = undefined /*out*/;
            resourceInputs["start"] = undefined /*out*/;
            resourceInputs["stop"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:databoxedge/v20190301:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20190701:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20190801:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20200501preview:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20200901:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20200901preview:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20201201:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20210201:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20210201preview:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20210601:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20210601preview:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20220301:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20220401preview:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20221201preview:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20230101preview:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20230701:BandwidthSchedule" }, { type: "azure-native:databoxedge/v20231201:BandwidthSchedule" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(BandwidthSchedule.__pulumiType, name, resourceInputs, opts);
    }
}
exports.BandwidthSchedule = BandwidthSchedule;
/** @internal */
BandwidthSchedule.__pulumiType = 'azure-native:databoxedge:BandwidthSchedule';
//# sourceMappingURL=data:application/json;base64, 