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

com.pulumi.azurenative.compute.kotlin.inputs.InstanceViewStatusArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.InstanceViewStatusArgs.builder
import com.pulumi.azurenative.compute.kotlin.enums.StatusLevelTypes
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

/**
 * Instance view status.
 * @property code The status code.
 * @property displayStatus The short localizable label for the status.
 * @property level The level code.
 * @property message The detailed status message, including for alerts and error messages.
 * @property time The time of the status.
 */
public data class InstanceViewStatusArgs(
    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.compute.inputs.InstanceViewStatusArgs =
        com.pulumi.azurenative.compute.inputs.InstanceViewStatusArgs.builder()
            .code(code?.applyValue({ args0 -> args0 }))
            .displayStatus(displayStatus?.applyValue({ args0 -> args0 }))
            .level(level?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .message(message?.applyValue({ args0 -> args0 }))
            .time(time?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceViewStatusArgs].
 */
@PulumiTagMarker
public class InstanceViewStatusArgsBuilder 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 The status code.
     */
    @JvmName("jruaaogewvjbqlay")
    public suspend fun code(`value`: Output) {
        this.code = value
    }

    /**
     * @param value The short localizable label for the status.
     */
    @JvmName("ueroqeecwqumccoc")
    public suspend fun displayStatus(`value`: Output) {
        this.displayStatus = value
    }

    /**
     * @param value The level code.
     */
    @JvmName("dkeamgbadrxcbtgp")
    public suspend fun level(`value`: Output) {
        this.level = value
    }

    /**
     * @param value The detailed status message, including for alerts and error messages.
     */
    @JvmName("lgtwekodbwcyyfpm")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value The time of the status.
     */
    @JvmName("brewsoeoelsnqqao")
    public suspend fun time(`value`: Output) {
        this.time = value
    }

    /**
     * @param value The status code.
     */
    @JvmName("fhatadlnodgmdgms")
    public suspend fun code(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.code = mapped
    }

    /**
     * @param value The short localizable label for the status.
     */
    @JvmName("nhaexdowkognsbeq")
    public suspend fun displayStatus(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayStatus = mapped
    }

    /**
     * @param value The level code.
     */
    @JvmName("cxdlntnhfmrdhyys")
    public suspend fun level(`value`: StatusLevelTypes?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value The detailed status message, including for alerts and error messages.
     */
    @JvmName("cpkmgeatrkfkqfjw")
    public suspend fun message(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.message = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy