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

com.pulumi.azurenative.solutions.kotlin.inputs.SkuArgs.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.solutions.kotlin.inputs

import com.pulumi.azurenative.solutions.inputs.SkuArgs.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

/**
 * SKU for the resource.
 * @property capacity The SKU capacity.
 * @property family The SKU family.
 * @property model The SKU model.
 * @property name The SKU name.
 * @property size The SKU size.
 * @property tier The SKU tier.
 */
public data class SkuArgs(
    public val capacity: Output? = null,
    public val family: Output? = null,
    public val model: Output? = null,
    public val name: Output,
    public val size: Output? = null,
    public val tier: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.solutions.inputs.SkuArgs =
        com.pulumi.azurenative.solutions.inputs.SkuArgs.builder()
            .capacity(capacity?.applyValue({ args0 -> args0 }))
            .family(family?.applyValue({ args0 -> args0 }))
            .model(model?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .size(size?.applyValue({ args0 -> args0 }))
            .tier(tier?.applyValue({ args0 -> args0 })).build()
}

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

    private var family: Output? = null

    private var model: Output? = null

    private var name: Output? = null

    private var size: Output? = null

    private var tier: Output? = null

    /**
     * @param value The SKU capacity.
     */
    @JvmName("apcfwlgnlsddrfrx")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value The SKU family.
     */
    @JvmName("swbtscxnwfiknivc")
    public suspend fun family(`value`: Output) {
        this.family = value
    }

    /**
     * @param value The SKU model.
     */
    @JvmName("xdjqminmecwmvttw")
    public suspend fun model(`value`: Output) {
        this.model = value
    }

    /**
     * @param value The SKU name.
     */
    @JvmName("hwdwpwqspqshghno")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The SKU size.
     */
    @JvmName("bdtbmhqhbpmlqfkq")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value The SKU tier.
     */
    @JvmName("kdqbqggnstmrjgea")
    public suspend fun tier(`value`: Output) {
        this.tier = value
    }

    /**
     * @param value The SKU capacity.
     */
    @JvmName("lfjpdcvjclhwqaqo")
    public suspend fun capacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

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

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

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

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

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

    internal fun build(): SkuArgs = SkuArgs(
        capacity = capacity,
        family = family,
        model = model,
        name = name ?: throw PulumiNullFieldException("name"),
        size = size,
        tier = tier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy