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

com.pulumi.azure.lab.kotlin.inputs.LabVirtualMachineSkuArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.lab.kotlin.inputs

import com.pulumi.azure.lab.inputs.LabVirtualMachineSkuArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property capacity The capacity for the SKU. Possible values are between `0` and `400`.
 * > **NOTE:** Once `active_directory_group_id` is enabled, `capacity` wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to use `ignore_changes` to avoid the difference of tf plan.
 * @property name The name of the SKU. Changing this forces a new resource to be created.
 */
public data class LabVirtualMachineSkuArgs(
    public val capacity: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.lab.inputs.LabVirtualMachineSkuArgs =
        com.pulumi.azure.lab.inputs.LabVirtualMachineSkuArgs.builder()
            .capacity(capacity.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LabVirtualMachineSkuArgs].
 */
@PulumiTagMarker
public class LabVirtualMachineSkuArgsBuilder internal constructor() {
    private var capacity: Output? = null

    private var name: Output? = null

    /**
     * @param value The capacity for the SKU. Possible values are between `0` and `400`.
     * > **NOTE:** Once `active_directory_group_id` is enabled, `capacity` wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to use `ignore_changes` to avoid the difference of tf plan.
     */
    @JvmName("gefneywfqgxbmuum")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value The name of the SKU. Changing this forces a new resource to be created.
     */
    @JvmName("qtankifkxjocwnwb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The capacity for the SKU. Possible values are between `0` and `400`.
     * > **NOTE:** Once `active_directory_group_id` is enabled, `capacity` wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to use `ignore_changes` to avoid the difference of tf plan.
     */
    @JvmName("kgrxltpkyuihlpbh")
    public suspend fun capacity(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param value The name of the SKU. Changing this forces a new resource to be created.
     */
    @JvmName("dpcnxnubbvnipgwx")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): LabVirtualMachineSkuArgs = LabVirtualMachineSkuArgs(
        capacity = capacity ?: throw PulumiNullFieldException("capacity"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy