com.pulumi.azure.appservice.kotlin.inputs.PlanSkuArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin.inputs
import com.pulumi.azure.appservice.inputs.PlanSkuArgs.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 workers associated with this App Service Plan.
* @property size Specifies the plan's instance size.
* @property tier Specifies the plan's pricing tier.
*/
public data class PlanSkuArgs(
public val capacity: Output? = null,
public val size: Output,
public val tier: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appservice.inputs.PlanSkuArgs =
com.pulumi.azure.appservice.inputs.PlanSkuArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0 }))
.size(size.applyValue({ args0 -> args0 }))
.tier(tier.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PlanSkuArgs].
*/
@PulumiTagMarker
public class PlanSkuArgsBuilder internal constructor() {
private var capacity: Output? = null
private var size: Output? = null
private var tier: Output? = null
/**
* @param value Specifies the number of workers associated with this App Service Plan.
*/
@JvmName("qvxycwuylkjjqwlk")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value Specifies the plan's instance size.
*/
@JvmName("pngkseuacidebaqg")
public suspend fun size(`value`: Output) {
this.size = value
}
/**
* @param value Specifies the plan's pricing tier.
*/
@JvmName("eympcamcvwgjaopq")
public suspend fun tier(`value`: Output) {
this.tier = value
}
/**
* @param value Specifies the number of workers associated with this App Service Plan.
*/
@JvmName("qtnptaxnfamsjlbj")
public suspend fun capacity(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value Specifies the plan's instance size.
*/
@JvmName("cursljrwppsgxver")
public suspend fun size(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.size = mapped
}
/**
* @param value Specifies the plan's pricing tier.
*/
@JvmName("vncekgohdgaymntt")
public suspend fun tier(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tier = mapped
}
internal fun build(): PlanSkuArgs = PlanSkuArgs(
capacity = capacity,
size = size ?: throw PulumiNullFieldException("size"),
tier = tier ?: throw PulumiNullFieldException("tier"),
)
}