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

com.pulumi.azurenative.labservices.kotlin.EnvironmentArgs.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.EnvironmentArgs.builder
import com.pulumi.azurenative.labservices.kotlin.inputs.ResourceSetArgs
import com.pulumi.azurenative.labservices.kotlin.inputs.ResourceSetArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Represents an environment instance
 * 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:Environment myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
 * ```
 * @property environmentName The name of the environment.
 * @property environmentSettingName The name of the environment Setting.
 * @property labAccountName The name of the lab Account.
 * @property labName The name of the lab.
 * @property location The location of the resource.
 * @property provisioningState The provisioning status of the resource.
 * @property resourceGroupName The name of the resource group.
 * @property resourceSets The set of a VM and the setting id it was created for
 * @property tags The tags of the resource.
 * @property uniqueIdentifier The unique immutable identifier of a resource (Guid).
 */
public data class EnvironmentArgs(
    public val environmentName: Output? = null,
    public val environmentSettingName: Output? = null,
    public val labAccountName: Output? = null,
    public val labName: Output? = null,
    public val location: Output? = null,
    public val provisioningState: Output? = null,
    public val resourceGroupName: Output? = null,
    public val resourceSets: Output? = null,
    public val tags: Output>? = null,
    public val uniqueIdentifier: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.labservices.EnvironmentArgs =
        com.pulumi.azurenative.labservices.EnvironmentArgs.builder()
            .environmentName(environmentName?.applyValue({ args0 -> args0 }))
            .environmentSettingName(environmentSettingName?.applyValue({ args0 -> args0 }))
            .labAccountName(labAccountName?.applyValue({ args0 -> args0 }))
            .labName(labName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .provisioningState(provisioningState?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .resourceSets(resourceSets?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .uniqueIdentifier(uniqueIdentifier?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnvironmentArgs].
 */
@PulumiTagMarker
public class EnvironmentArgsBuilder internal constructor() {
    private var environmentName: Output? = null

    private var environmentSettingName: Output? = null

    private var labAccountName: Output? = null

    private var labName: Output? = null

    private var location: Output? = null

    private var provisioningState: Output? = null

    private var resourceGroupName: Output? = null

    private var resourceSets: Output? = null

    private var tags: Output>? = null

    private var uniqueIdentifier: Output? = null

    /**
     * @param value The name of the environment.
     */
    @JvmName("sshnrsbfyjntsbyv")
    public suspend fun environmentName(`value`: Output) {
        this.environmentName = value
    }

    /**
     * @param value The name of the environment Setting.
     */
    @JvmName("etuqjfpmvkkdfcab")
    public suspend fun environmentSettingName(`value`: Output) {
        this.environmentSettingName = value
    }

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

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

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

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

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

    /**
     * @param value The set of a VM and the setting id it was created for
     */
    @JvmName("aappxmmkmdaartxr")
    public suspend fun resourceSets(`value`: Output) {
        this.resourceSets = value
    }

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

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

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

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

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

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

    /**
     * @param value The location of the resource.
     */
    @JvmName("avhrxjqeispkkbjm")
    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("xhhhgvsujhspvykp")
    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("tfnbwudyktkpqfat")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The set of a VM and the setting id it was created for
     */
    @JvmName("obdbgsfwekeloqdv")
    public suspend fun resourceSets(`value`: ResourceSetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceSets = mapped
    }

    /**
     * @param argument The set of a VM and the setting id it was created for
     */
    @JvmName("cnvkabsychmqullu")
    public suspend fun resourceSets(argument: suspend ResourceSetArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceSetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.resourceSets = mapped
    }

    /**
     * @param value The tags of the resource.
     */
    @JvmName("vxytjeyiqxlleoja")
    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("ioajacjetmnbbvba")
    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("lsxmcdskipsvvvhc")
    public suspend fun uniqueIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uniqueIdentifier = mapped
    }

    internal fun build(): EnvironmentArgs = EnvironmentArgs(
        environmentName = environmentName,
        environmentSettingName = environmentSettingName,
        labAccountName = labAccountName,
        labName = labName,
        location = location,
        provisioningState = provisioningState,
        resourceGroupName = resourceGroupName,
        resourceSets = resourceSets,
        tags = tags,
        uniqueIdentifier = uniqueIdentifier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy