Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.sql.kotlin.inputs
import com.pulumi.azurenative.sql.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
/**
* An ARM Resource SKU.
* @property capacity Capacity of the particular SKU.
* @property family If the service has different generations of hardware, for the same SKU, then that can be captured here.
* @property name The name of the SKU, typically, a letter + Number code, e.g. P3.
* @property size Size of the particular SKU
* @property tier The tier or edition of the particular SKU, e.g. Basic, Premium.
*/
public data class SkuArgs(
public val capacity: Output? = null,
public val family: Output? = null,
public val name: Output,
public val size: Output? = null,
public val tier: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.sql.inputs.SkuArgs =
com.pulumi.azurenative.sql.inputs.SkuArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0 }))
.family(family?.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 name: Output? = null
private var size: Output? = null
private var tier: Output? = null
/**
* @param value Capacity of the particular SKU.
*/
@JvmName("ssnxbdlpndajbtml")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value If the service has different generations of hardware, for the same SKU, then that can be captured here.
*/
@JvmName("ofkcavllgoiofnnh")
public suspend fun family(`value`: Output) {
this.family = value
}
/**
* @param value The name of the SKU, typically, a letter + Number code, e.g. P3.
*/
@JvmName("ybsmmnpxlnlplrcv")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Size of the particular SKU
*/
@JvmName("kbdvfytcauurncje")
public suspend fun size(`value`: Output) {
this.size = value
}
/**
* @param value The tier or edition of the particular SKU, e.g. Basic, Premium.
*/
@JvmName("hmxpuhgpwbfguoim")
public suspend fun tier(`value`: Output) {
this.tier = value
}
/**
* @param value Capacity of the particular SKU.
*/
@JvmName("mqqixmngrjlvoujm")
public suspend fun capacity(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value If the service has different generations of hardware, for the same SKU, then that can be captured here.
*/
@JvmName("lejtlttxnptpcdux")
public suspend fun family(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.family = mapped
}
/**
* @param value The name of the SKU, typically, a letter + Number code, e.g. P3.
*/
@JvmName("spxrqyeewjcbukkc")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Size of the particular SKU
*/
@JvmName("acdthgarcmvirvoy")
public suspend fun size(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.size = mapped
}
/**
* @param value The tier or edition of the particular SKU, e.g. Basic, Premium.
*/
@JvmName("euohbauqehxsmqqd")
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,
name = name ?: throw PulumiNullFieldException("name"),
size = size,
tier = tier,
)
}