
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelCompositeModel.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.iotsitewise.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Contains a composite model definition in an asset model. This composite model definition is applied to all assets created from the asset model.
* @property composedAssetModelId The component model ID for which the composite model is composed of
* @property compositeModelProperties The property definitions of the asset model. You can specify up to 200 properties per asset model.
* @property description A description for the asset composite model.
* @property externalId The External ID of the composite model
* @property id The Actual ID of the composite model
* @property name A unique, friendly name for the asset composite model.
* @property parentAssetModelCompositeModelExternalId The parent composite model External ID
* @property path The path of the composite model. This is only for derived composite models
* @property type The type of the composite model. For alarm composite models, this type is AWS/ALARM
*/
public data class AssetModelCompositeModel(
public val composedAssetModelId: String? = null,
public val compositeModelProperties: List? = null,
public val description: String? = null,
public val externalId: String? = null,
public val id: String? = null,
public val name: String,
public val parentAssetModelCompositeModelExternalId: String? = null,
public val path: List? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotsitewise.outputs.AssetModelCompositeModel): AssetModelCompositeModel = AssetModelCompositeModel(
composedAssetModelId = javaType.composedAssetModelId().map({ args0 -> args0 }).orElse(null),
compositeModelProperties = javaType.compositeModelProperties().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelProperty.Companion.toKotlin(args0)
})
}),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
externalId = javaType.externalId().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
parentAssetModelCompositeModelExternalId = javaType.parentAssetModelCompositeModelExternalId().map({ args0 ->
args0
}).orElse(null),
path = javaType.path().map({ args0 -> args0 }),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy