com.pulumi.kubernetes.events.v1beta1.kotlin.inputs.EventSeriesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.events.v1beta1.kotlin.inputs
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 com.pulumi.kubernetes.events.v1beta1.inputs.EventSeriesArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.
* @property count Number of occurrences in this series up to the last heartbeat time
* @property lastObservedTime Time when last Event from the series was seen before last heartbeat.
* @property state Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18
*/
public data class EventSeriesArgs(
public val count: Output,
public val lastObservedTime: Output,
public val state: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.events.v1beta1.inputs.EventSeriesArgs =
com.pulumi.kubernetes.events.v1beta1.inputs.EventSeriesArgs.builder()
.count(count.applyValue({ args0 -> args0 }))
.lastObservedTime(lastObservedTime.applyValue({ args0 -> args0 }))
.state(state.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EventSeriesArgs].
*/
@PulumiTagMarker
public class EventSeriesArgsBuilder internal constructor() {
private var count: Output? = null
private var lastObservedTime: Output? = null
private var state: Output? = null
/**
* @param value Number of occurrences in this series up to the last heartbeat time
*/
@JvmName("dckqtfjdfjhaehrh")
public suspend fun count(`value`: Output) {
this.count = value
}
/**
* @param value Time when last Event from the series was seen before last heartbeat.
*/
@JvmName("qosiprdxdcqdkjnc")
public suspend fun lastObservedTime(`value`: Output) {
this.lastObservedTime = value
}
/**
* @param value Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18
*/
@JvmName("etsgeashlphjtpdy")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value Number of occurrences in this series up to the last heartbeat time
*/
@JvmName("qpvpmvelmkcbqpso")
public suspend fun count(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.count = mapped
}
/**
* @param value Time when last Event from the series was seen before last heartbeat.
*/
@JvmName("hgviybmqbmxegnuw")
public suspend fun lastObservedTime(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.lastObservedTime = mapped
}
/**
* @param value Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18
*/
@JvmName("jfpfiojinxautnie")
public suspend fun state(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): EventSeriesArgs = EventSeriesArgs(
count = count ?: throw PulumiNullFieldException("count"),
lastObservedTime = lastObservedTime ?: throw PulumiNullFieldException("lastObservedTime"),
state = state ?: throw PulumiNullFieldException("state"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy