![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.webpubsub.kotlin.inputs.ResourceSkuArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.webpubsub.kotlin.inputs
import com.pulumi.azurenative.webpubsub.inputs.ResourceSkuArgs.builder
import com.pulumi.azurenative.webpubsub.kotlin.enums.WebPubSubSkuTier
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.webpubsub.inputs.ResourceSkuArgs =
com.pulumi.azurenative.webpubsub.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("gyajjijftyhgtrut")
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("nbujjygfichqpyjj")
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("anigsoqpshmccrcp")
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("cwmxiahpodrjkbcs")
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("ijrrfxydivolhoks")
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("jltmllacafvuidsm")
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("fbtnclixokgurprp")
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("wwjpidersmmrqyvd")
public fun tier(`value`: WebPubSubSkuTier) {
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