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

com.pulumi.azurenative.signalrservice.kotlin.inputs.ResourceSkuArgs.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.signalrservice.kotlin.inputs

import com.pulumi.azurenative.signalrservice.inputs.ResourceSkuArgs.builder
import com.pulumi.azurenative.signalrservice.kotlin.enums.SignalRSkuTier
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The billing information of the resource.
 * @property capacity Optional, integer. The unit count of the resource. 1 by default.
 * If present, following values are allowed:
 *     Free: 1;
 *     Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
 *     Premium:  1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
 * @property name The name of the SKU. Required.
 * Allowed values: Standard_S1, Free_F1, Premium_P1
 * @property tier Optional tier of this particular SKU. 'Standard' or 'Free'.
 * `Basic` is deprecated, use `Standard` instead.
 */
public data class ResourceSkuArgs(
    public val capacity: Output? = null,
    public val name: Output,
    public val tier: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.signalrservice.inputs.ResourceSkuArgs =
        com.pulumi.azurenative.signalrservice.inputs.ResourceSkuArgs.builder()
            .capacity(capacity?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .tier(
                tier?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var name: Output? = null

    private var tier: Output>? = null

    /**
     * @param value Optional, integer. The unit count of the resource. 1 by default.
     * If present, following values are allowed:
     *     Free: 1;
     *     Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
     *     Premium:  1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
     */
    @JvmName("wqaajwmrohrsmsne")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value The name of the SKU. Required.
     * Allowed values: Standard_S1, Free_F1, Premium_P1
     */
    @JvmName("mgrqsuabssyapsjp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Optional tier of this particular SKU. 'Standard' or 'Free'.
     * `Basic` is deprecated, use `Standard` instead.
     */
    @JvmName("selewpojjcncqowb")
    public suspend fun tier(`value`: Output>) {
        this.tier = value
    }

    /**
     * @param value Optional, integer. The unit count of the resource. 1 by default.
     * If present, following values are allowed:
     *     Free: 1;
     *     Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
     *     Premium:  1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
     */
    @JvmName("oubjvhmnwbsayepk")
    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. Required.
     * Allowed values: Standard_S1, Free_F1, Premium_P1
     */
    @JvmName("vcvcwaxomopevddq")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Optional tier of this particular SKU. 'Standard' or 'Free'.
     * `Basic` is deprecated, use `Standard` instead.
     */
    @JvmName("rhurwwwagnyqubba")
    public suspend fun tier(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    /**
     * @param value Optional tier of this particular SKU. 'Standard' or 'Free'.
     * `Basic` is deprecated, use `Standard` instead.
     */
    @JvmName("tadiypttxfocakmi")
    public fun tier(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    /**
     * @param value Optional tier of this particular SKU. 'Standard' or 'Free'.
     * `Basic` is deprecated, use `Standard` instead.
     */
    @JvmName("airntnkyriapvtym")
    public fun tier(`value`: SignalRSkuTier) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tier = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy