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

com.pulumi.azurenative.kubernetesconfiguration.kotlin.inputs.ExtensionStatusArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.kubernetesconfiguration.kotlin.inputs

import com.pulumi.azurenative.kubernetesconfiguration.inputs.ExtensionStatusArgs.builder
import com.pulumi.azurenative.kubernetesconfiguration.kotlin.enums.LevelType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Status from the extension.
 * @property code Status code provided by the Extension
 * @property displayStatus Short description of status of the extension.
 * @property level Level of the status.
 * @property message Detailed message of the status from the Extension.
 * @property time DateLiteral (per ISO8601) noting the time of installation status.
 */
public data class ExtensionStatusArgs(
    public val code: Output? = null,
    public val displayStatus: Output? = null,
    public val level: Output>? = null,
    public val message: Output? = null,
    public val time: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.kubernetesconfiguration.inputs.ExtensionStatusArgs =
        com.pulumi.azurenative.kubernetesconfiguration.inputs.ExtensionStatusArgs.builder()
            .code(code?.applyValue({ args0 -> args0 }))
            .displayStatus(displayStatus?.applyValue({ args0 -> args0 }))
            .level(
                level?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .message(message?.applyValue({ args0 -> args0 }))
            .time(time?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExtensionStatusArgs].
 */
@PulumiTagMarker
public class ExtensionStatusArgsBuilder internal constructor() {
    private var code: Output? = null

    private var displayStatus: Output? = null

    private var level: Output>? = null

    private var message: Output? = null

    private var time: Output? = null

    /**
     * @param value Status code provided by the Extension
     */
    @JvmName("jcovuwauksrclksi")
    public suspend fun code(`value`: Output) {
        this.code = value
    }

    /**
     * @param value Short description of status of the extension.
     */
    @JvmName("nmrwuunxglgjhiyp")
    public suspend fun displayStatus(`value`: Output) {
        this.displayStatus = value
    }

    /**
     * @param value Level of the status.
     */
    @JvmName("pejksvxaaaxveane")
    public suspend fun level(`value`: Output>) {
        this.level = value
    }

    /**
     * @param value Detailed message of the status from the Extension.
     */
    @JvmName("godniuxcfsqbwovb")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value DateLiteral (per ISO8601) noting the time of installation status.
     */
    @JvmName("uvrvydfoarungmxs")
    public suspend fun time(`value`: Output) {
        this.time = value
    }

    /**
     * @param value Status code provided by the Extension
     */
    @JvmName("tiwurmmprkwvaeot")
    public suspend fun code(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.code = mapped
    }

    /**
     * @param value Short description of status of the extension.
     */
    @JvmName("pouajqxyyhnorudy")
    public suspend fun displayStatus(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayStatus = mapped
    }

    /**
     * @param value Level of the status.
     */
    @JvmName("xxwkhinmjpeawqth")
    public suspend fun level(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value Level of the status.
     */
    @JvmName("mcowiryuetkwpdrk")
    public fun level(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value Level of the status.
     */
    @JvmName("riorwcddivkgbhth")
    public fun level(`value`: LevelType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value Detailed message of the status from the Extension.
     */
    @JvmName("jeuurkbdxbyjpagg")
    public suspend fun message(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.message = mapped
    }

    /**
     * @param value DateLiteral (per ISO8601) noting the time of installation status.
     */
    @JvmName("drvjmtlbsmjdolmw")
    public suspend fun time(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.time = mapped
    }

    internal fun build(): ExtensionStatusArgs = ExtensionStatusArgs(
        code = code,
        displayStatus = displayStatus,
        level = level,
        message = message,
        time = time,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy