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

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

/**
 * ExpressionWarning is a warning information that targets a specific expression.
 * @property fieldRef The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
 * @property warning The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
 */
public data class ExpressionWarningArgs(
    public val fieldRef: Output,
    public val warning: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.admissionregistration.v1.inputs.ExpressionWarningArgs = com.pulumi.kubernetes.admissionregistration.v1.inputs.ExpressionWarningArgs.builder()
        .fieldRef(fieldRef.applyValue({ args0 -> args0 }))
        .warning(warning.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExpressionWarningArgs].
 */
@PulumiTagMarker
public class ExpressionWarningArgsBuilder internal constructor() {
    private var fieldRef: Output? = null

    private var warning: Output? = null

    /**
     * @param value The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
     */
    @JvmName("gihxpwadglsgdsdc")
    public suspend fun fieldRef(`value`: Output) {
        this.fieldRef = value
    }

    /**
     * @param value The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
     */
    @JvmName("jjdqkgejstotnewj")
    public suspend fun warning(`value`: Output) {
        this.warning = value
    }

    /**
     * @param value The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
     */
    @JvmName("aiaqfijjdiwysebw")
    public suspend fun fieldRef(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldRef = mapped
    }

    /**
     * @param value The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
     */
    @JvmName("bsovqlqyainwblws")
    public suspend fun warning(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.warning = mapped
    }

    internal fun build(): ExpressionWarningArgs = ExpressionWarningArgs(
        fieldRef = fieldRef ?: throw PulumiNullFieldException("fieldRef"),
        warning = warning ?: throw PulumiNullFieldException("warning"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy