com.pulumi.awsnative.lightsail.kotlin.outputs.InstanceState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lightsail.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* Current State of the Instance.
* @property code Status code of the Instance.
* @property name Status code of the Instance.
*/
public data class InstanceState(
public val code: Int? = null,
public val name: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lightsail.outputs.InstanceState): InstanceState = InstanceState(
code = javaType.code().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
)
}
}