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

com.pulumi.kubernetes.batch.v1.kotlin.inputs.UncountedTerminatedPodsArgs.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.batch.v1.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.batch.v1.inputs.UncountedTerminatedPodsArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.
 * @property failed failed holds UIDs of failed Pods.
 * @property succeeded succeeded holds UIDs of succeeded Pods.
 */
public data class UncountedTerminatedPodsArgs(
    public val failed: Output>? = null,
    public val succeeded: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.batch.v1.inputs.UncountedTerminatedPodsArgs =
        com.pulumi.kubernetes.batch.v1.inputs.UncountedTerminatedPodsArgs.builder()
            .failed(failed?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .succeeded(succeeded?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var succeeded: Output>? = null

    /**
     * @param value failed holds UIDs of failed Pods.
     */
    @JvmName("haywmpuuuunoqsvv")
    public suspend fun failed(`value`: Output>) {
        this.failed = value
    }

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

    /**
     * @param values failed holds UIDs of failed Pods.
     */
    @JvmName("kxadyeydyreitsnu")
    public suspend fun failed(values: List>) {
        this.failed = Output.all(values)
    }

    /**
     * @param value succeeded holds UIDs of succeeded Pods.
     */
    @JvmName("affhlulwsyfoxfnq")
    public suspend fun succeeded(`value`: Output>) {
        this.succeeded = value
    }

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

    /**
     * @param values succeeded holds UIDs of succeeded Pods.
     */
    @JvmName("qgjbajnqigjnpgvs")
    public suspend fun succeeded(values: List>) {
        this.succeeded = Output.all(values)
    }

    /**
     * @param value failed holds UIDs of failed Pods.
     */
    @JvmName("bgrxjqhkdnqxkecg")
    public suspend fun failed(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failed = mapped
    }

    /**
     * @param values failed holds UIDs of failed Pods.
     */
    @JvmName("iuljyuelamjifyfi")
    public suspend fun failed(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failed = mapped
    }

    /**
     * @param value succeeded holds UIDs of succeeded Pods.
     */
    @JvmName("ujsejafjjjytulwv")
    public suspend fun succeeded(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.succeeded = mapped
    }

    /**
     * @param values succeeded holds UIDs of succeeded Pods.
     */
    @JvmName("ahchbhtroanaoyle")
    public suspend fun succeeded(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.succeeded = mapped
    }

    internal fun build(): UncountedTerminatedPodsArgs = UncountedTerminatedPodsArgs(
        failed = failed,
        succeeded = succeeded,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy