"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.Student = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Student details.
 *
 * Uses Azure REST API version 2021-12-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-12-01-preview.
 */
class Student extends pulumi.CustomResource {
    /**
     * Get an existing Student 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 Student(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of Student.  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'] === Student.__pulumiType;
    }
    /**
     * Create a Student 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?.billingAccountName === undefined && !opts.urn) {
                throw new Error("Missing required property 'billingAccountName'");
            }
            if (args?.billingProfileName === undefined && !opts.urn) {
                throw new Error("Missing required property 'billingProfileName'");
            }
            if (args?.budget === undefined && !opts.urn) {
                throw new Error("Missing required property 'budget'");
            }
            if (args?.email === undefined && !opts.urn) {
                throw new Error("Missing required property 'email'");
            }
            if (args?.expirationDate === undefined && !opts.urn) {
                throw new Error("Missing required property 'expirationDate'");
            }
            if (args?.firstName === undefined && !opts.urn) {
                throw new Error("Missing required property 'firstName'");
            }
            if (args?.invoiceSectionName === undefined && !opts.urn) {
                throw new Error("Missing required property 'invoiceSectionName'");
            }
            if (args?.lastName === undefined && !opts.urn) {
                throw new Error("Missing required property 'lastName'");
            }
            if (args?.role === undefined && !opts.urn) {
                throw new Error("Missing required property 'role'");
            }
            resourceInputs["billingAccountName"] = args?.billingAccountName;
            resourceInputs["billingProfileName"] = args?.billingProfileName;
            resourceInputs["budget"] = args?.budget;
            resourceInputs["email"] = args?.email;
            resourceInputs["expirationDate"] = args?.expirationDate;
            resourceInputs["firstName"] = args?.firstName;
            resourceInputs["invoiceSectionName"] = args?.invoiceSectionName;
            resourceInputs["lastName"] = args?.lastName;
            resourceInputs["role"] = args?.role;
            resourceInputs["studentAlias"] = args?.studentAlias;
            resourceInputs["subscriptionAlias"] = args?.subscriptionAlias;
            resourceInputs["subscriptionInviteLastSentDate"] = args?.subscriptionInviteLastSentDate;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["effectiveDate"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["subscriptionId"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["budget"] = undefined /*out*/;
            resourceInputs["effectiveDate"] = undefined /*out*/;
            resourceInputs["email"] = undefined /*out*/;
            resourceInputs["expirationDate"] = undefined /*out*/;
            resourceInputs["firstName"] = undefined /*out*/;
            resourceInputs["lastName"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["role"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["subscriptionAlias"] = undefined /*out*/;
            resourceInputs["subscriptionId"] = undefined /*out*/;
            resourceInputs["subscriptionInviteLastSentDate"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:education/v20211201preview:Student" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(Student.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Student = Student;
/** @internal */
Student.__pulumiType = 'azure-native:education:Student';
//# sourceMappingURL=data:application/json;base64, 