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

com.pulumi.azurenative.labservices.kotlin.LabAccountArgs.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.labservices.kotlin

import com.pulumi.azurenative.labservices.LabAccountArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Represents a lab account.
 * Azure REST API version: 2018-10-15. Prior API version in Azure Native 1.x: 2018-10-15.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:labservices:LabAccount myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
 * ```
 * @property enabledRegionSelection Represents if region selection is enabled
 * @property labAccountName The name of the lab Account.
 * @property location The location of the resource.
 * @property provisioningState The provisioning status of the resource.
 * @property resourceGroupName The name of the resource group.
 * @property tags The tags of the resource.
 * @property uniqueIdentifier The unique immutable identifier of a resource (Guid).
 */
public data class LabAccountArgs(
    public val enabledRegionSelection: Output? = null,
    public val labAccountName: Output? = null,
    public val location: Output? = null,
    public val provisioningState: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val uniqueIdentifier: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.labservices.LabAccountArgs =
        com.pulumi.azurenative.labservices.LabAccountArgs.builder()
            .enabledRegionSelection(enabledRegionSelection?.applyValue({ args0 -> args0 }))
            .labAccountName(labAccountName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .provisioningState(provisioningState?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .uniqueIdentifier(uniqueIdentifier?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LabAccountArgs].
 */
@PulumiTagMarker
public class LabAccountArgsBuilder internal constructor() {
    private var enabledRegionSelection: Output? = null

    private var labAccountName: Output? = null

    private var location: Output? = null

    private var provisioningState: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var uniqueIdentifier: Output? = null

    /**
     * @param value Represents if region selection is enabled
     */
    @JvmName("qnsaanytbjbdkfvg")
    public suspend fun enabledRegionSelection(`value`: Output) {
        this.enabledRegionSelection = value
    }

    /**
     * @param value The name of the lab Account.
     */
    @JvmName("inkhkekrnojinkmb")
    public suspend fun labAccountName(`value`: Output) {
        this.labAccountName = value
    }

    /**
     * @param value The location of the resource.
     */
    @JvmName("bboshivfqmmquref")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The provisioning status of the resource.
     */
    @JvmName("wqotskojdwutonhn")
    public suspend fun provisioningState(`value`: Output) {
        this.provisioningState = value
    }

    /**
     * @param value The name of the resource group.
     */
    @JvmName("kefrfxttgdbycwdu")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The tags of the resource.
     */
    @JvmName("llldyebyqvoygqus")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The unique immutable identifier of a resource (Guid).
     */
    @JvmName("xucbdkapdrjrnqrc")
    public suspend fun uniqueIdentifier(`value`: Output) {
        this.uniqueIdentifier = value
    }

    /**
     * @param value Represents if region selection is enabled
     */
    @JvmName("snyfxvnwggjajxic")
    public suspend fun enabledRegionSelection(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabledRegionSelection = mapped
    }

    /**
     * @param value The name of the lab Account.
     */
    @JvmName("hytcwiouyqnvcxgg")
    public suspend fun labAccountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labAccountName = mapped
    }

    /**
     * @param value The location of the resource.
     */
    @JvmName("jkujlyxkmnkqwshf")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The provisioning status of the resource.
     */
    @JvmName("liawttlhgofkkvaf")
    public suspend fun provisioningState(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The name of the resource group.
     */
    @JvmName("cvsdfckcqqbmiptr")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The tags of the resource.
     */
    @JvmName("iivqyvxnpdqwrmhc")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The tags of the resource.
     */
    @JvmName("midcftlfbobdjpdi")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The unique immutable identifier of a resource (Guid).
     */
    @JvmName("sdkdelbiqdmdniji")
    public suspend fun uniqueIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uniqueIdentifier = mapped
    }

    internal fun build(): LabAccountArgs = LabAccountArgs(
        enabledRegionSelection = enabledRegionSelection,
        labAccountName = labAccountName,
        location = location,
        provisioningState = provisioningState,
        resourceGroupName = resourceGroupName,
        tags = tags,
        uniqueIdentifier = uniqueIdentifier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy