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

com.pulumi.kubernetes.events.v1beta1.kotlin.inputs.EventSeriesPatchArgs.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.

There is a newer version: 4.18.2.0
Show 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.PulumiTagMarker
import com.pulumi.kubernetes.events.v1beta1.inputs.EventSeriesPatchArgs.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 EventSeriesPatchArgs(
    public val count: Output? = null,
    public val lastObservedTime: Output? = null,
    public val state: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.events.v1beta1.inputs.EventSeriesPatchArgs =
        com.pulumi.kubernetes.events.v1beta1.inputs.EventSeriesPatchArgs.builder()
            .count(count?.applyValue({ args0 -> args0 }))
            .lastObservedTime(lastObservedTime?.applyValue({ args0 -> args0 }))
            .state(state?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EventSeriesPatchArgs].
 */
@PulumiTagMarker
public class EventSeriesPatchArgsBuilder 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("cygkipgpmfoqbyvt")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value Time when last Event from the series was seen before last heartbeat.
     */
    @JvmName("hqcbxamsqbfcqaet")
    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("coaodnffbjfvqdnn")
    public suspend fun state(`value`: Output) {
        this.state = value
    }

    /**
     * @param value Number of occurrences in this series up to the last heartbeat time
     */
    @JvmName("ctrhqdmnaeqrbbul")
    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("vbievcmxqowixisn")
    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("qqydafameedrbbqf")
    public suspend fun state(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.state = mapped
    }

    internal fun build(): EventSeriesPatchArgs = EventSeriesPatchArgs(
        count = count,
        lastObservedTime = lastObservedTime,
        state = state,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy