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

com.pulumi.kubernetes.admissionregistration.v1alpha1.kotlin.inputs.ValidatingAdmissionPolicyStatusArgs.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.admissionregistration.v1alpha1.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.admissionregistration.v1alpha1.inputs.ValidatingAdmissionPolicyStatusArgs.builder
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.ConditionArgs
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.ConditionArgsBuilder
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
 * @property conditions The conditions represent the latest available observations of a policy's current state.
 * @property observedGeneration The generation observed by the controller.
 * @property typeChecking The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
 */
public data class ValidatingAdmissionPolicyStatusArgs(
    public val conditions: Output>? = null,
    public val observedGeneration: Output? = null,
    public val typeChecking: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.admissionregistration.v1alpha1.inputs.ValidatingAdmissionPolicyStatusArgs =
        com.pulumi.kubernetes.admissionregistration.v1alpha1.inputs.ValidatingAdmissionPolicyStatusArgs.builder()
            .conditions(
                conditions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .observedGeneration(observedGeneration?.applyValue({ args0 -> args0 }))
            .typeChecking(typeChecking?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var observedGeneration: Output? = null

    private var typeChecking: Output? = null

    /**
     * @param value The conditions represent the latest available observations of a policy's current state.
     */
    @JvmName("taxqttvuhstxqiht")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

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

    /**
     * @param values The conditions represent the latest available observations of a policy's current state.
     */
    @JvmName("mxaewefwngyuwxwy")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value The generation observed by the controller.
     */
    @JvmName("rwfngmjirmacihde")
    public suspend fun observedGeneration(`value`: Output) {
        this.observedGeneration = value
    }

    /**
     * @param value The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
     */
    @JvmName("dmkldchbhqefkexl")
    public suspend fun typeChecking(`value`: Output) {
        this.typeChecking = value
    }

    /**
     * @param value The conditions represent the latest available observations of a policy's current state.
     */
    @JvmName("txgojtegkwqfivjy")
    public suspend fun conditions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument The conditions represent the latest available observations of a policy's current state.
     */
    @JvmName("hlfetkqcnabehekg")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ConditionArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument The conditions represent the latest available observations of a policy's current state.
     */
    @JvmName("ibcnjtcxrxifktwk")
    public suspend fun conditions(vararg argument: suspend ConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ConditionArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument The conditions represent the latest available observations of a policy's current state.
     */
    @JvmName("hfqlquufjxmrcolx")
    public suspend fun conditions(argument: suspend ConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ConditionArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param values The conditions represent the latest available observations of a policy's current state.
     */
    @JvmName("awpxysscdekkivwa")
    public suspend fun conditions(vararg values: ConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param value The generation observed by the controller.
     */
    @JvmName("pgqoskoldvslrwdr")
    public suspend fun observedGeneration(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.observedGeneration = mapped
    }

    /**
     * @param value The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
     */
    @JvmName("qmarxdhjyadaqtvu")
    public suspend fun typeChecking(`value`: TypeCheckingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.typeChecking = mapped
    }

    /**
     * @param argument The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
     */
    @JvmName("llabxeblqlqimihb")
    public suspend fun typeChecking(argument: suspend TypeCheckingArgsBuilder.() -> Unit) {
        val toBeMapped = TypeCheckingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.typeChecking = mapped
    }

    internal fun build(): ValidatingAdmissionPolicyStatusArgs = ValidatingAdmissionPolicyStatusArgs(
        conditions = conditions,
        observedGeneration = observedGeneration,
        typeChecking = typeChecking,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy