
com.pulumi.azurenative.hybridcompute.kotlin.inputs.MachineExtensionInstanceViewStatusArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.hybridcompute.kotlin.inputs
import com.pulumi.azurenative.hybridcompute.inputs.MachineExtensionInstanceViewStatusArgs.builder
import com.pulumi.azurenative.hybridcompute.kotlin.enums.StatusLevelTypes
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
/**
* 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 MachineExtensionInstanceViewStatusArgs(
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.hybridcompute.inputs.MachineExtensionInstanceViewStatusArgs =
com.pulumi.azurenative.hybridcompute.inputs.MachineExtensionInstanceViewStatusArgs.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 [MachineExtensionInstanceViewStatusArgs].
*/
@PulumiTagMarker
public class MachineExtensionInstanceViewStatusArgsBuilder 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("nijkfsosupepanjy")
public suspend fun code(`value`: Output) {
this.code = value
}
/**
* @param value The short localizable label for the status.
*/
@JvmName("xokvpfthdfyexaqm")
public suspend fun displayStatus(`value`: Output) {
this.displayStatus = value
}
/**
* @param value The level code.
*/
@JvmName("ulregiokymciirpu")
public suspend fun level(`value`: Output>) {
this.level = value
}
/**
* @param value The detailed status message, including for alerts and error messages.
*/
@JvmName("wbwnvtfjaighkmyl")
public suspend fun message(`value`: Output) {
this.message = value
}
/**
* @param value The time of the status.
*/
@JvmName("qdjhqurlfysgnikq")
public suspend fun time(`value`: Output) {
this.time = value
}
/**
* @param value The status code.
*/
@JvmName("bdnatvnhjqwrvxjb")
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("mdatteimdpecalfy")
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("ipevyhyxxnksoiyq")
public suspend fun level(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.level = mapped
}
/**
* @param value The level code.
*/
@JvmName("nmmnbgvnevmalfam")
public fun level(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.level = mapped
}
/**
* @param value The level code.
*/
@JvmName("jtnfxdjhoteqlumc")
public fun level(`value`: StatusLevelTypes) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.level = mapped
}
/**
* @param value The detailed status message, including for alerts and error messages.
*/
@JvmName("txcyqqmybpfbubbb")
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("nfbnutquwaaycabo")
public suspend fun time(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.time = mapped
}
internal fun build(): MachineExtensionInstanceViewStatusArgs =
MachineExtensionInstanceViewStatusArgs(
code = code,
displayStatus = displayStatus,
level = level,
message = message,
time = time,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy