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

com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityStatus.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iottwinmaker.kotlin.outputs

import com.pulumi.awsnative.iottwinmaker.kotlin.enums.EntityStatusState
import com.pulumi.core.Either
import kotlin.Any
import kotlin.Suppress

/**
 *
 * @property error
 * @property state
 */
public data class EntityStatus(
    public val error: Either? = null,
    public val state: EntityStatusState? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iottwinmaker.outputs.EntityStatus): EntityStatus = EntityStatus(
            error = javaType.error().map({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityStatusErrorProperties.Companion.toKotlin(args0)
                    })
                })
            }).orElse(null),
            state = javaType.state().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iottwinmaker.kotlin.enums.EntityStatusState.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy