All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.education.kotlin.LabArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.education.kotlin

import com.pulumi.azurenative.education.LabArgs.builder
import com.pulumi.azurenative.education.kotlin.inputs.AmountArgs
import com.pulumi.azurenative.education.kotlin.inputs.AmountArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Lab details.
 * Azure REST API version: 2021-12-01-preview. Prior API version in Azure Native 1.x: 2021-12-01-preview.
 * ## Example Usage
 * ### CreateLab
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var lab = new AzureNative.Education.Lab("lab", new()
 *     {
 *         BillingAccountName = "{billingAccountName}",
 *         BillingProfileName = "{billingProfileName}",
 *         BudgetPerStudent = new AzureNative.Education.Inputs.AmountArgs
 *         {
 *             Currency = "USD",
 *             Value = 100,
 *         },
 *         Description = "example lab description",
 *         DisplayName = "example lab",
 *         ExpirationDate = "2021-12-09T22:11:29.422Z",
 *         InvoiceSectionName = "{invoiceSectionName}",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	education "github.com/pulumi/pulumi-azure-native-sdk/education/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := education.NewLab(ctx, "lab", &education.LabArgs{
 * 			BillingAccountName: pulumi.String("{billingAccountName}"),
 * 			BillingProfileName: pulumi.String("{billingProfileName}"),
 * 			BudgetPerStudent: &education.AmountArgs{
 * 				Currency: pulumi.String("USD"),
 * 				Value:    pulumi.Float64(100),
 * 			},
 * 			Description:        pulumi.String("example lab description"),
 * 			DisplayName:        pulumi.String("example lab"),
 * 			ExpirationDate:     pulumi.String("2021-12-09T22:11:29.422Z"),
 * 			InvoiceSectionName: pulumi.String("{invoiceSectionName}"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.education.Lab;
 * import com.pulumi.azurenative.education.LabArgs;
 * import com.pulumi.azurenative.education.inputs.AmountArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var lab = new Lab("lab", LabArgs.builder()
 *             .billingAccountName("{billingAccountName}")
 *             .billingProfileName("{billingProfileName}")
 *             .budgetPerStudent(AmountArgs.builder()
 *                 .currency("USD")
 *                 .value(100)
 *                 .build())
 *             .description("example lab description")
 *             .displayName("example lab")
 *             .expirationDate("2021-12-09T22:11:29.422Z")
 *             .invoiceSectionName("{invoiceSectionName}")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:education:Lab default /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default
 * ```
 * @property billingAccountName The ID that uniquely identifies a billing account.
 * @property billingProfileName The ID that uniquely identifies a billing profile.
 * @property budgetPerStudent Default monetary cap for each student in this lab
 * @property currency The type of currency being used for the value.
 * @property description Detail description of this lab
 * @property displayName Lab Display Name
 * @property expirationDate Default expiration date for each student in this lab
 * @property invoiceSectionName The ID that uniquely identifies an invoice section.
 * @property value Amount value.
 */
public data class LabArgs(
    public val billingAccountName: Output? = null,
    public val billingProfileName: Output? = null,
    public val budgetPerStudent: Output? = null,
    public val currency: Output? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val expirationDate: Output? = null,
    public val invoiceSectionName: Output? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.education.LabArgs =
        com.pulumi.azurenative.education.LabArgs.builder()
            .billingAccountName(billingAccountName?.applyValue({ args0 -> args0 }))
            .billingProfileName(billingProfileName?.applyValue({ args0 -> args0 }))
            .budgetPerStudent(budgetPerStudent?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .currency(currency?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .expirationDate(expirationDate?.applyValue({ args0 -> args0 }))
            .invoiceSectionName(invoiceSectionName?.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LabArgs].
 */
@PulumiTagMarker
public class LabArgsBuilder internal constructor() {
    private var billingAccountName: Output? = null

    private var billingProfileName: Output? = null

    private var budgetPerStudent: Output? = null

    private var currency: Output? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var expirationDate: Output? = null

    private var invoiceSectionName: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The ID that uniquely identifies a billing account.
     */
    @JvmName("xnvehqxynuyhogif")
    public suspend fun billingAccountName(`value`: Output) {
        this.billingAccountName = value
    }

    /**
     * @param value The ID that uniquely identifies a billing profile.
     */
    @JvmName("okgplpawcbdfegfq")
    public suspend fun billingProfileName(`value`: Output) {
        this.billingProfileName = value
    }

    /**
     * @param value Default monetary cap for each student in this lab
     */
    @JvmName("xfxfsyjnfubdruji")
    public suspend fun budgetPerStudent(`value`: Output) {
        this.budgetPerStudent = value
    }

    /**
     * @param value The type of currency being used for the value.
     */
    @JvmName("xhmtydulypboqsio")
    public suspend fun currency(`value`: Output) {
        this.currency = value
    }

    /**
     * @param value Detail description of this lab
     */
    @JvmName("ufkrxdityqfurlph")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Lab Display Name
     */
    @JvmName("cadugoykpjeylbso")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Default expiration date for each student in this lab
     */
    @JvmName("cnayykujlktjyvcg")
    public suspend fun expirationDate(`value`: Output) {
        this.expirationDate = value
    }

    /**
     * @param value The ID that uniquely identifies an invoice section.
     */
    @JvmName("bmhjwengqmibilje")
    public suspend fun invoiceSectionName(`value`: Output) {
        this.invoiceSectionName = value
    }

    /**
     * @param value Amount value.
     */
    @JvmName("ioxxmqgiqvlcujtd")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The ID that uniquely identifies a billing account.
     */
    @JvmName("nwgvvmvmlevqbmcp")
    public suspend fun billingAccountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.billingAccountName = mapped
    }

    /**
     * @param value The ID that uniquely identifies a billing profile.
     */
    @JvmName("lfexqqxfwsnfcgia")
    public suspend fun billingProfileName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.billingProfileName = mapped
    }

    /**
     * @param value Default monetary cap for each student in this lab
     */
    @JvmName("qtcaccvnucgiqrhk")
    public suspend fun budgetPerStudent(`value`: AmountArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.budgetPerStudent = mapped
    }

    /**
     * @param argument Default monetary cap for each student in this lab
     */
    @JvmName("kioygrxhdgcluxiq")
    public suspend fun budgetPerStudent(argument: suspend AmountArgsBuilder.() -> Unit) {
        val toBeMapped = AmountArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.budgetPerStudent = mapped
    }

    /**
     * @param value The type of currency being used for the value.
     */
    @JvmName("bpnrbdebhehditux")
    public suspend fun currency(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.currency = mapped
    }

    /**
     * @param value Detail description of this lab
     */
    @JvmName("olfblusiuhaxsnow")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Lab Display Name
     */
    @JvmName("yuvhvwypuhdvlgqc")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value Default expiration date for each student in this lab
     */
    @JvmName("uitpkcuuwxiaeldk")
    public suspend fun expirationDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expirationDate = mapped
    }

    /**
     * @param value The ID that uniquely identifies an invoice section.
     */
    @JvmName("gpjkkxxyhseigayd")
    public suspend fun invoiceSectionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.invoiceSectionName = mapped
    }

    /**
     * @param value Amount value.
     */
    @JvmName("fwlwdqnawrfrjnyg")
    public suspend fun `value`(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): LabArgs = LabArgs(
        billingAccountName = billingAccountName,
        billingProfileName = billingProfileName,
        budgetPerStudent = budgetPerStudent,
        currency = currency,
        description = description,
        displayName = displayName,
        expirationDate = expirationDate,
        invoiceSectionName = invoiceSectionName,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy