com.pulumi.kubernetes.batch.v1.kotlin.inputs.JobConditionArgs.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.
@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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.batch.v1.inputs.JobConditionArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* JobCondition describes current state of a job.
* @property lastProbeTime Last time the condition was checked.
* @property lastTransitionTime Last time the condition transit from one status to another.
* @property message Human readable message indicating details about last transition.
* @property reason (brief) reason for the condition's last transition.
* @property status Status of the condition, one of True, False, Unknown.
* @property type Type of job condition, Complete or Failed.
*/
public data class JobConditionArgs(
public val lastProbeTime: Output? = null,
public val lastTransitionTime: Output? = null,
public val message: Output? = null,
public val reason: Output? = null,
public val status: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.batch.v1.inputs.JobConditionArgs =
com.pulumi.kubernetes.batch.v1.inputs.JobConditionArgs.builder()
.lastProbeTime(lastProbeTime?.applyValue({ args0 -> args0 }))
.lastTransitionTime(lastTransitionTime?.applyValue({ args0 -> args0 }))
.message(message?.applyValue({ args0 -> args0 }))
.reason(reason?.applyValue({ args0 -> args0 }))
.status(status.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobConditionArgs].
*/
@PulumiTagMarker
public class JobConditionArgsBuilder internal constructor() {
private var lastProbeTime: Output? = null
private var lastTransitionTime: Output? = null
private var message: Output? = null
private var reason: Output? = null
private var status: Output? = null
private var type: Output? = null
/**
* @param value Last time the condition was checked.
*/
@JvmName("rcfxymwxxgexcrvy")
public suspend fun lastProbeTime(`value`: Output) {
this.lastProbeTime = value
}
/**
* @param value Last time the condition transit from one status to another.
*/
@JvmName("ucgfvbxbqqfymmcf")
public suspend fun lastTransitionTime(`value`: Output) {
this.lastTransitionTime = value
}
/**
* @param value Human readable message indicating details about last transition.
*/
@JvmName("xkojbvhrugkkntaw")
public suspend fun message(`value`: Output) {
this.message = value
}
/**
* @param value (brief) reason for the condition's last transition.
*/
@JvmName("rqshjdfnwnqndcxp")
public suspend fun reason(`value`: Output) {
this.reason = value
}
/**
* @param value Status of the condition, one of True, False, Unknown.
*/
@JvmName("agfalfdavyknnghu")
public suspend fun status(`value`: Output) {
this.status = value
}
/**
* @param value Type of job condition, Complete or Failed.
*/
@JvmName("klgonujnsqheuhfe")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Last time the condition was checked.
*/
@JvmName("luomnbyyjnksfmyy")
public suspend fun lastProbeTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.lastProbeTime = mapped
}
/**
* @param value Last time the condition transit from one status to another.
*/
@JvmName("mlpfjwqsbqohelsc")
public suspend fun lastTransitionTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.lastTransitionTime = mapped
}
/**
* @param value Human readable message indicating details about last transition.
*/
@JvmName("iduvteqafgyqyrlx")
public suspend fun message(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.message = mapped
}
/**
* @param value (brief) reason for the condition's last transition.
*/
@JvmName("rlcsxknoouxomjfv")
public suspend fun reason(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.reason = mapped
}
/**
* @param value Status of the condition, one of True, False, Unknown.
*/
@JvmName("sidcnwqevdrncwyr")
public suspend fun status(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Type of job condition, Complete or Failed.
*/
@JvmName("alkslnpdsxhbpvte")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): JobConditionArgs = JobConditionArgs(
lastProbeTime = lastProbeTime,
lastTransitionTime = lastTransitionTime,
message = message,
reason = reason,
status = status ?: throw PulumiNullFieldException("status"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy