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

com.pulumi.kubernetes.batch.v1beta1.kotlin.inputs.CronJobStatusArgs.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.batch.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.kotlin.applySuspend
import com.pulumi.kubernetes.batch.v1beta1.inputs.CronJobStatusArgs.builder
import com.pulumi.kubernetes.core.v1.kotlin.inputs.ObjectReferenceArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.ObjectReferenceArgsBuilder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * CronJobStatus represents the current state of a cron job.
 * @property active A list of pointers to currently running jobs.
 * @property lastScheduleTime Information when was the last time the job was successfully scheduled.
 */
public data class CronJobStatusArgs(
    public val active: Output>? = null,
    public val lastScheduleTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.batch.v1beta1.inputs.CronJobStatusArgs =
        com.pulumi.kubernetes.batch.v1beta1.inputs.CronJobStatusArgs.builder()
            .active(active?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .lastScheduleTime(lastScheduleTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CronJobStatusArgs].
 */
@PulumiTagMarker
public class CronJobStatusArgsBuilder internal constructor() {
    private var active: Output>? = null

    private var lastScheduleTime: Output? = null

    /**
     * @param value A list of pointers to currently running jobs.
     */
    @JvmName("ggqvmlbsqxjctqlo")
    public suspend fun active(`value`: Output>) {
        this.active = value
    }

    @JvmName("vgkdgmfxjieawvsq")
    public suspend fun active(vararg values: Output) {
        this.active = Output.all(values.asList())
    }

    /**
     * @param values A list of pointers to currently running jobs.
     */
    @JvmName("ahvetrqruivwhwcr")
    public suspend fun active(values: List>) {
        this.active = Output.all(values)
    }

    /**
     * @param value Information when was the last time the job was successfully scheduled.
     */
    @JvmName("woxgduwhivrkpjcp")
    public suspend fun lastScheduleTime(`value`: Output) {
        this.lastScheduleTime = value
    }

    /**
     * @param value A list of pointers to currently running jobs.
     */
    @JvmName("iurkvelxaonpycfo")
    public suspend fun active(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.active = mapped
    }

    /**
     * @param argument A list of pointers to currently running jobs.
     */
    @JvmName("vjegvdixldjoosua")
    public suspend fun active(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ObjectReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.active = mapped
    }

    /**
     * @param argument A list of pointers to currently running jobs.
     */
    @JvmName("tffroykoglkjvuht")
    public suspend fun active(vararg argument: suspend ObjectReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ObjectReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.active = mapped
    }

    /**
     * @param argument A list of pointers to currently running jobs.
     */
    @JvmName("fnwqbefsvocrwoca")
    public suspend fun active(argument: suspend ObjectReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ObjectReferenceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.active = mapped
    }

    /**
     * @param values A list of pointers to currently running jobs.
     */
    @JvmName("bawrnsecpvvqqdgg")
    public suspend fun active(vararg values: ObjectReferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.active = mapped
    }

    /**
     * @param value Information when was the last time the job was successfully scheduled.
     */
    @JvmName("gkygqdooyfrxgtat")
    public suspend fun lastScheduleTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastScheduleTime = mapped
    }

    internal fun build(): CronJobStatusArgs = CronJobStatusArgs(
        active = active,
        lastScheduleTime = lastScheduleTime,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy