
com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetModelCompositeModelArgs.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.inputs
import com.pulumi.awsnative.iotsitewise.inputs.AssetModelCompositeModelArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* 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 AssetModelCompositeModelArgs(
public val composedAssetModelId: Output? = null,
public val compositeModelProperties: Output>? = null,
public val description: Output? = null,
public val externalId: Output? = null,
public val id: Output? = null,
public val name: Output,
public val parentAssetModelCompositeModelExternalId: Output? = null,
public val path: Output>? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotsitewise.inputs.AssetModelCompositeModelArgs =
com.pulumi.awsnative.iotsitewise.inputs.AssetModelCompositeModelArgs.builder()
.composedAssetModelId(composedAssetModelId?.applyValue({ args0 -> args0 }))
.compositeModelProperties(
compositeModelProperties?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.externalId(externalId?.applyValue({ args0 -> args0 }))
.id(id?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.parentAssetModelCompositeModelExternalId(
parentAssetModelCompositeModelExternalId?.applyValue({ args0 ->
args0
}),
)
.path(path?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AssetModelCompositeModelArgs].
*/
@PulumiTagMarker
public class AssetModelCompositeModelArgsBuilder internal constructor() {
private var composedAssetModelId: Output? = null
private var compositeModelProperties: Output>? = null
private var description: Output? = null
private var externalId: Output? = null
private var id: Output? = null
private var name: Output? = null
private var parentAssetModelCompositeModelExternalId: Output? = null
private var path: Output>? = null
private var type: Output? = null
/**
* @param value The component model ID for which the composite model is composed of
*/
@JvmName("flshgeiadmopxwns")
public suspend fun composedAssetModelId(`value`: Output) {
this.composedAssetModelId = value
}
/**
* @param value The property definitions of the asset model. You can specify up to 200 properties per asset model.
*/
@JvmName("yatilvhduvaomecv")
public suspend fun compositeModelProperties(`value`: Output>) {
this.compositeModelProperties = value
}
@JvmName("hvlhvxohavbbqyhf")
public suspend fun compositeModelProperties(vararg values: Output) {
this.compositeModelProperties = Output.all(values.asList())
}
/**
* @param values The property definitions of the asset model. You can specify up to 200 properties per asset model.
*/
@JvmName("efoelhjrgtijekln")
public suspend fun compositeModelProperties(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy