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

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

/**
 * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.
 * @property status Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
 * @property type Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
 */
public data class PodFailurePolicyOnPodConditionsPatternArgs(
    public val status: Output,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyOnPodConditionsPatternArgs =
        com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyOnPodConditionsPatternArgs.builder()
            .status(status.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PodFailurePolicyOnPodConditionsPatternArgs].
 */
@PulumiTagMarker
public class PodFailurePolicyOnPodConditionsPatternArgsBuilder internal constructor() {
    private var status: Output? = null

    private var type: Output? = null

    /**
     * @param value Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
     */
    @JvmName("hqmmrwaoqiuiqkuh")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
     */
    @JvmName("fdcbdoehqyssvtsc")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
     */
    @JvmName("omgwiyijlonxpjye")
    public suspend fun status(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
     */
    @JvmName("evakxjnjnrdklehu")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): PodFailurePolicyOnPodConditionsPatternArgs =
        PodFailurePolicyOnPodConditionsPatternArgs(
            status = status ?: throw PulumiNullFieldException("status"),
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy