com.pulumi.awsnative.licensemanager.kotlin.inputs.LicenseEntitlementArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.awsnative.licensemanager.kotlin.inputs
import com.pulumi.awsnative.licensemanager.inputs.LicenseEntitlementArgs.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property allowCheckIn Indicates whether check-ins are allowed.
* @property maxCount Maximum entitlement count. Use if the unit is not None.
* @property name Entitlement name.
* @property overage Indicates whether overages are allowed.
* @property unit Entitlement unit.
* @property value Entitlement resource. Use only if the unit is None.
*/
public data class LicenseEntitlementArgs(
public val allowCheckIn: Output? = null,
public val maxCount: Output? = null,
public val name: Output,
public val overage: Output? = null,
public val unit: Output,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.licensemanager.inputs.LicenseEntitlementArgs =
com.pulumi.awsnative.licensemanager.inputs.LicenseEntitlementArgs.builder()
.allowCheckIn(allowCheckIn?.applyValue({ args0 -> args0 }))
.maxCount(maxCount?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.overage(overage?.applyValue({ args0 -> args0 }))
.unit(unit.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LicenseEntitlementArgs].
*/
@PulumiTagMarker
public class LicenseEntitlementArgsBuilder internal constructor() {
private var allowCheckIn: Output? = null
private var maxCount: Output? = null
private var name: Output? = null
private var overage: Output? = null
private var unit: Output? = null
private var `value`: Output? = null
/**
* @param value Indicates whether check-ins are allowed.
*/
@JvmName("hrbytqqjaojbhasf")
public suspend fun allowCheckIn(`value`: Output) {
this.allowCheckIn = value
}
/**
* @param value Maximum entitlement count. Use if the unit is not None.
*/
@JvmName("ndmsxbxxvubxoudk")
public suspend fun maxCount(`value`: Output) {
this.maxCount = value
}
/**
* @param value Entitlement name.
*/
@JvmName("teheqryoanilryfq")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Indicates whether overages are allowed.
*/
@JvmName("xavudbvuphjsoujj")
public suspend fun overage(`value`: Output) {
this.overage = value
}
/**
* @param value Entitlement unit.
*/
@JvmName("yapwqhlvnfidyeii")
public suspend fun unit(`value`: Output) {
this.unit = value
}
/**
* @param value Entitlement resource. Use only if the unit is None.
*/
@JvmName("cwfgmletorsnivam")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Indicates whether check-ins are allowed.
*/
@JvmName("wvsdwmuyganiywhf")
public suspend fun allowCheckIn(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowCheckIn = mapped
}
/**
* @param value Maximum entitlement count. Use if the unit is not None.
*/
@JvmName("qyevfnktgatyoqpr")
public suspend fun maxCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxCount = mapped
}
/**
* @param value Entitlement name.
*/
@JvmName("dtnbihyvuasenobw")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Indicates whether overages are allowed.
*/
@JvmName("xfewklnhwcuxijwo")
public suspend fun overage(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.overage = mapped
}
/**
* @param value Entitlement unit.
*/
@JvmName("wfgimffhqjllasja")
public suspend fun unit(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.unit = mapped
}
/**
* @param value Entitlement resource. Use only if the unit is None.
*/
@JvmName("hjqyrllcfheebyif")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): LicenseEntitlementArgs = LicenseEntitlementArgs(
allowCheckIn = allowCheckIn,
maxCount = maxCount,
name = name ?: throw PulumiNullFieldException("name"),
overage = overage,
unit = unit ?: throw PulumiNullFieldException("unit"),
`value` = `value`,
)
}