All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.events.v1.kotlin.inputs.EventSeriesArgs.kt Maven / Gradle / Ivy

Go to download

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.v1.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.v1.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. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
 * @property count count is the number of occurrences in this series up to the last heartbeat time.
 * @property lastObservedTime lastObservedTime is the time when last Event from the series was seen before last heartbeat.
 */
public data class EventSeriesArgs(
    public val count: Output,
    public val lastObservedTime: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.events.v1.inputs.EventSeriesArgs =
        com.pulumi.kubernetes.events.v1.inputs.EventSeriesArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .lastObservedTime(lastObservedTime.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EventSeriesArgs].
 */
@PulumiTagMarker
public class EventSeriesArgsBuilder internal constructor() {
    private var count: Output? = null

    private var lastObservedTime: Output? = null

    /**
     * @param value count is the number of occurrences in this series up to the last heartbeat time.
     */
    @JvmName("wntbvktiybxlwpxg")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value lastObservedTime is the time when last Event from the series was seen before last heartbeat.
     */
    @JvmName("dngxvtqpyegfpgvb")
    public suspend fun lastObservedTime(`value`: Output) {
        this.lastObservedTime = value
    }

    /**
     * @param value count is the number of occurrences in this series up to the last heartbeat time.
     */
    @JvmName("hesuhcqgrtvbwpht")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value lastObservedTime is the time when last Event from the series was seen before last heartbeat.
     */
    @JvmName("vybegbvtvdyeyqxv")
    public suspend fun lastObservedTime(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lastObservedTime = mapped
    }

    internal fun build(): EventSeriesArgs = EventSeriesArgs(
        count = count ?: throw PulumiNullFieldException("count"),
        lastObservedTime = lastObservedTime ?: throw PulumiNullFieldException("lastObservedTime"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy