![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityComponent.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iottwinmaker.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property componentName The name of the component.
* @property componentTypeId The ID of the component type.
* @property definedIn The name of the property definition set in the component.
* @property description The description of the component.
* @property properties An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
* @property propertyGroups An object that maps strings to the property groups to set in the component type. Each string in the mapping must be unique to this object.
* @property status The current status of the entity.
*/
public data class EntityComponent(
public val componentName: String? = null,
public val componentTypeId: String? = null,
public val definedIn: String? = null,
public val description: String? = null,
public val properties: Map? = null,
public val propertyGroups: Map? = null,
public val status: EntityStatus? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iottwinmaker.outputs.EntityComponent): EntityComponent = EntityComponent(
componentName = javaType.componentName().map({ args0 -> args0 }).orElse(null),
componentTypeId = javaType.componentTypeId().map({ args0 -> args0 }).orElse(null),
definedIn = javaType.definedIn().map({ args0 -> args0 }).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
properties = javaType.properties().map({ args0 ->
args0.key.to(
args0.value.let({ args0 ->
com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityProperty.Companion.toKotlin(args0)
}),
)
}).toMap(),
propertyGroups = javaType.propertyGroups().map({ args0 ->
args0.key.to(
args0.value.let({ args0 ->
com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityPropertyGroup.Companion.toKotlin(args0)
}),
)
}).toMap(),
status = javaType.status().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityStatus.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy