com.pulumi.awsnative.ec2.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.ec2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* The current state of the instance
* @property code The state of the instance as a 16-bit unsigned integer.
* @property name The current state of the instance.
*/
public data class InstanceState(
public val code: String? = null,
public val name: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.InstanceState): InstanceState =
InstanceState(
code = javaType.code().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
)
}
}