
com.pulumi.awsnative.imagebuilder.kotlin.inputs.LifecyclePolicyLastLaunchedArgs.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.imagebuilder.kotlin.inputs
import com.pulumi.awsnative.imagebuilder.inputs.LifecyclePolicyLastLaunchedArgs.builder
import com.pulumi.awsnative.imagebuilder.kotlin.enums.LifecyclePolicyTimeUnit
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.Suppress
import kotlin.jvm.JvmName
/**
* The last launched time of a resource.
* @property unit The value's time unit.
* @property value The last launched value.
*/
public data class LifecyclePolicyLastLaunchedArgs(
public val unit: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.LifecyclePolicyLastLaunchedArgs =
com.pulumi.awsnative.imagebuilder.inputs.LifecyclePolicyLastLaunchedArgs.builder()
.unit(unit.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LifecyclePolicyLastLaunchedArgs].
*/
@PulumiTagMarker
public class LifecyclePolicyLastLaunchedArgsBuilder internal constructor() {
private var unit: Output? = null
private var `value`: Output? = null
/**
* @param value The value's time unit.
*/
@JvmName("tnsorcivwnwskoim")
public suspend fun unit(`value`: Output) {
this.unit = value
}
/**
* @param value The last launched value.
*/
@JvmName("fdxsxtuovpacabuq")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The value's time unit.
*/
@JvmName("wqfokadtekiptrox")
public suspend fun unit(`value`: LifecyclePolicyTimeUnit) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.unit = mapped
}
/**
* @param value The last launched value.
*/
@JvmName("lotsbypjcohqtedp")
public suspend fun `value`(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): LifecyclePolicyLastLaunchedArgs = LifecyclePolicyLastLaunchedArgs(
unit = unit ?: throw PulumiNullFieldException("unit"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy