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

com.pulumi.azure.compute.kotlin.inputs.ScaleSetSkuArgs.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.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.ScaleSetSkuArgs.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 Specifies the number of virtual machines in the scale set.
 * @property name Specifies the size of virtual machines in a scale set.
 * @property tier Specifies the tier of virtual machines in a scale set. Possible values, `standard` or `basic`.
 */
public data class ScaleSetSkuArgs(
    public val capacity: Output,
    public val name: Output,
    public val tier: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.ScaleSetSkuArgs =
        com.pulumi.azure.compute.inputs.ScaleSetSkuArgs.builder()
            .capacity(capacity.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .tier(tier?.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    private var tier: Output? = null

    /**
     * @param value Specifies the number of virtual machines in the scale set.
     */
    @JvmName("fumvougvvdrdxcay")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value Specifies the size of virtual machines in a scale set.
     */
    @JvmName("thjxdlesnehdwixy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the tier of virtual machines in a scale set. Possible values, `standard` or `basic`.
     */
    @JvmName("mmkukgyxvjbtkcvu")
    public suspend fun tier(`value`: Output) {
        this.tier = value
    }

    /**
     * @param value Specifies the number of virtual machines in the scale set.
     */
    @JvmName("phvbufkvgckpprcx")
    public suspend fun capacity(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param value Specifies the size of virtual machines in a scale set.
     */
    @JvmName("mrmkjuiewrjwfecd")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the tier of virtual machines in a scale set. Possible values, `standard` or `basic`.
     */
    @JvmName("bjwnmvmpwkabwool")
    public suspend fun tier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tier = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy