com.pulumi.azurenative.devices.kotlin.inputs.IotDpsSkuInfoArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devices.kotlin.inputs
import com.pulumi.azurenative.devices.inputs.IotDpsSkuInfoArgs.builder
import com.pulumi.azurenative.devices.kotlin.enums.IotDpsSku
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.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* List of possible provisioning service SKUs.
* @property capacity The number of units to provision
* @property name Sku name.
*/
public data class IotDpsSkuInfoArgs(
public val capacity: Output? = null,
public val name: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devices.inputs.IotDpsSkuInfoArgs =
com.pulumi.azurenative.devices.inputs.IotDpsSkuInfoArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0 }))
.name(
name?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [IotDpsSkuInfoArgs].
*/
@PulumiTagMarker
public class IotDpsSkuInfoArgsBuilder internal constructor() {
private var capacity: Output? = null
private var name: Output>? = null
/**
* @param value The number of units to provision
*/
@JvmName("vodqesgmnpthjjnh")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value Sku name.
*/
@JvmName("jrbohynoqaqipsvm")
public suspend fun name(`value`: Output>) {
this.name = value
}
/**
* @param value The number of units to provision
*/
@JvmName("yttdmwukrbugnhut")
public suspend fun capacity(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value Sku name.
*/
@JvmName("jwoukubahcrvlvqy")
public suspend fun name(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Sku name.
*/
@JvmName("jpaybcerfnlkoonh")
public fun name(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Sku name.
*/
@JvmName("ytpxewtvkibfupnk")
public fun name(`value`: IotDpsSku) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): IotDpsSkuInfoArgs = IotDpsSkuInfoArgs(
capacity = capacity,
name = name,
)
}