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

com.pulumi.azurenative.labservices.kotlin.EnvironmentSettingArgs.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.EnvironmentSettingArgs.builder
import com.pulumi.azurenative.labservices.kotlin.enums.ConfigurationState
import com.pulumi.azurenative.labservices.kotlin.inputs.ResourceSettingsArgs
import com.pulumi.azurenative.labservices.kotlin.inputs.ResourceSettingsArgsBuilder
import com.pulumi.core.Either
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 settings of an environment, from which environment instances would be created
 * 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:EnvironmentSetting myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
 * ```
 * @property configurationState Describes the user's progress in configuring their environment setting
 * @property description Describes the environment and its resource settings
 * @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 resourceSettings The resource specific settings
 * @property tags The tags of the resource.
 * @property title Brief title describing the environment and its resource settings
 * @property uniqueIdentifier The unique immutable identifier of a resource (Guid).
 */
public data class EnvironmentSettingArgs(
    public val configurationState: Output>? = null,
    public val description: 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 resourceSettings: Output? = null,
    public val tags: Output>? = null,
    public val title: Output? = null,
    public val uniqueIdentifier: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.labservices.EnvironmentSettingArgs =
        com.pulumi.azurenative.labservices.EnvironmentSettingArgs.builder()
            .configurationState(
                configurationState?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .description(description?.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 }))
            .resourceSettings(resourceSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .title(title?.applyValue({ args0 -> args0 }))
            .uniqueIdentifier(uniqueIdentifier?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnvironmentSettingArgs].
 */
@PulumiTagMarker
public class EnvironmentSettingArgsBuilder internal constructor() {
    private var configurationState: Output>? = null

    private var description: 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 resourceSettings: Output? = null

    private var tags: Output>? = null

    private var title: Output? = null

    private var uniqueIdentifier: Output? = null

    /**
     * @param value Describes the user's progress in configuring their environment setting
     */
    @JvmName("kkcgdpxkhjeodbld")
    public suspend fun configurationState(`value`: Output>) {
        this.configurationState = value
    }

    /**
     * @param value Describes the environment and its resource settings
     */
    @JvmName("jwnqflvdggbdayuk")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

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

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

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

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

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

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

    /**
     * @param value The resource specific settings
     */
    @JvmName("ipihmgkwdbqtdtcl")
    public suspend fun resourceSettings(`value`: Output) {
        this.resourceSettings = value
    }

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

    /**
     * @param value Brief title describing the environment and its resource settings
     */
    @JvmName("keqxnstcgqjenydj")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

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

    /**
     * @param value Describes the user's progress in configuring their environment setting
     */
    @JvmName("mildaaqkjlkuspdc")
    public suspend fun configurationState(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configurationState = mapped
    }

    /**
     * @param value Describes the user's progress in configuring their environment setting
     */
    @JvmName("fustpfgefxmmiebc")
    public fun configurationState(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configurationState = mapped
    }

    /**
     * @param value Describes the user's progress in configuring their environment setting
     */
    @JvmName("egserrjvlobbwppv")
    public fun configurationState(`value`: ConfigurationState) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configurationState = mapped
    }

    /**
     * @param value Describes the environment and its resource settings
     */
    @JvmName("wrimgmrctgjlplig")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the environment Setting.
     */
    @JvmName("tjvcegkroypatvgj")
    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("wkfdysprdygtiouc")
    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("cupwncfoyfjilefj")
    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("bookcahfoosqcrqd")
    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("xgsrnsubsuhdbmxw")
    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("ndifimwuvbgxjxmd")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The resource specific settings
     */
    @JvmName("cbwghrkqbosdfohw")
    public suspend fun resourceSettings(`value`: ResourceSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceSettings = mapped
    }

    /**
     * @param argument The resource specific settings
     */
    @JvmName("bopykamkcglycuei")
    public suspend fun resourceSettings(argument: suspend ResourceSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.resourceSettings = mapped
    }

    /**
     * @param value The tags of the resource.
     */
    @JvmName("fqdbomoijkmysmyn")
    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("lsynbesfdywwount")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Brief title describing the environment and its resource settings
     */
    @JvmName("uhnmuuwkydanybyf")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

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

    internal fun build(): EnvironmentSettingArgs = EnvironmentSettingArgs(
        configurationState = configurationState,
        description = description,
        environmentSettingName = environmentSettingName,
        labAccountName = labAccountName,
        labName = labName,
        location = location,
        provisioningState = provisioningState,
        resourceGroupName = resourceGroupName,
        resourceSettings = resourceSettings,
        tags = tags,
        title = title,
        uniqueIdentifier = uniqueIdentifier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy