![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.migrate.kotlin.inputs.VsphereLicenseArgs.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.migrate.kotlin.inputs
import com.pulumi.azurenative.migrate.inputs.VsphereLicenseArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.LicenseType
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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Representation of a vsphere licence.
* @property basicSupportCost Basic support cost.
* @property licenseCost Cost of a licence.
* @property licenseType VSphere licence type.
* @property productionSupportCost Production support cost.
*/
public data class VsphereLicenseArgs(
public val basicSupportCost: Output,
public val licenseCost: Output,
public val licenseType: Output>,
public val productionSupportCost: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.migrate.inputs.VsphereLicenseArgs =
com.pulumi.azurenative.migrate.inputs.VsphereLicenseArgs.builder()
.basicSupportCost(basicSupportCost.applyValue({ args0 -> args0 }))
.licenseCost(licenseCost.applyValue({ args0 -> args0 }))
.licenseType(
licenseType.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.productionSupportCost(productionSupportCost.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VsphereLicenseArgs].
*/
@PulumiTagMarker
public class VsphereLicenseArgsBuilder internal constructor() {
private var basicSupportCost: Output? = null
private var licenseCost: Output? = null
private var licenseType: Output>? = null
private var productionSupportCost: Output? = null
/**
* @param value Basic support cost.
*/
@JvmName("jjbncdxlhsqklate")
public suspend fun basicSupportCost(`value`: Output) {
this.basicSupportCost = value
}
/**
* @param value Cost of a licence.
*/
@JvmName("bininyrgudqpdces")
public suspend fun licenseCost(`value`: Output) {
this.licenseCost = value
}
/**
* @param value VSphere licence type.
*/
@JvmName("nvodafpkpnlojjhw")
public suspend fun licenseType(`value`: Output>) {
this.licenseType = value
}
/**
* @param value Production support cost.
*/
@JvmName("pednqcwthfrrtipf")
public suspend fun productionSupportCost(`value`: Output) {
this.productionSupportCost = value
}
/**
* @param value Basic support cost.
*/
@JvmName("rbyoaudcdsifrymy")
public suspend fun basicSupportCost(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.basicSupportCost = mapped
}
/**
* @param value Cost of a licence.
*/
@JvmName("pmilgrrtfmxmekfv")
public suspend fun licenseCost(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.licenseCost = mapped
}
/**
* @param value VSphere licence type.
*/
@JvmName("qgpuhnuoylinfhtf")
public suspend fun licenseType(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.licenseType = mapped
}
/**
* @param value VSphere licence type.
*/
@JvmName("duqitoncsfqhxrdn")
public fun licenseType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.licenseType = mapped
}
/**
* @param value VSphere licence type.
*/
@JvmName("nmgrrxjasnhyktog")
public fun licenseType(`value`: LicenseType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.licenseType = mapped
}
/**
* @param value Production support cost.
*/
@JvmName("owunobxecmnvhsaa")
public suspend fun productionSupportCost(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.productionSupportCost = mapped
}
internal fun build(): VsphereLicenseArgs = VsphereLicenseArgs(
basicSupportCost = basicSupportCost ?: throw PulumiNullFieldException("basicSupportCost"),
licenseCost = licenseCost ?: throw PulumiNullFieldException("licenseCost"),
licenseType = licenseType ?: throw PulumiNullFieldException("licenseType"),
productionSupportCost = productionSupportCost ?: throw
PulumiNullFieldException("productionSupportCost"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy