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

com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetModelCompositeModelArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@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>) {
        this.compositeModelProperties = Output.all(values)
    }

    /**
     * @param value A description for the asset composite model.
     */
    @JvmName("uuufkgpqkcjoqmcb")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The External ID of the composite model
     */
    @JvmName("fejepymtwgtvtemt")
    public suspend fun externalId(`value`: Output) {
        this.externalId = value
    }

    /**
     * @param value The Actual ID of the composite model
     */
    @JvmName("jawwvwmvuyumnxyi")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value A unique, friendly name for the asset composite model.
     */
    @JvmName("lviocfsmiraivweg")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The parent composite model External ID
     */
    @JvmName("voiuvsalavqomxkw")
    public suspend fun parentAssetModelCompositeModelExternalId(`value`: Output) {
        this.parentAssetModelCompositeModelExternalId = value
    }

    /**
     * @param value The path of the composite model. This is only for derived composite models
     */
    @JvmName("aktmeojvnaksonbr")
    public suspend fun path(`value`: Output>) {
        this.path = value
    }

    @JvmName("srlsajwnhjkqvksx")
    public suspend fun path(vararg values: Output) {
        this.path = Output.all(values.asList())
    }

    /**
     * @param values The path of the composite model. This is only for derived composite models
     */
    @JvmName("qfwtkjmtpbilqwoq")
    public suspend fun path(values: List>) {
        this.path = Output.all(values)
    }

    /**
     * @param value The type of the composite model. For alarm composite models, this type is AWS/ALARM
     */
    @JvmName("enxidcoqjsgvdova")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The component model ID for which the composite model is composed of
     */
    @JvmName("fvyapqwajhbkhjtq")
    public suspend fun composedAssetModelId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.composedAssetModelId = mapped
    }

    /**
     * @param value The property definitions of the asset model. You can specify up to 200 properties per asset model.
     */
    @JvmName("dekqcgsowjujregj")
    public suspend fun compositeModelProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compositeModelProperties = mapped
    }

    /**
     * @param argument The property definitions of the asset model. You can specify up to 200 properties per asset model.
     */
    @JvmName("mqwsmetrmmglcimr")
    public suspend fun compositeModelProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AssetModelPropertyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.compositeModelProperties = mapped
    }

    /**
     * @param argument The property definitions of the asset model. You can specify up to 200 properties per asset model.
     */
    @JvmName("pxcaswqcqxasytkf")
    public suspend fun compositeModelProperties(vararg argument: suspend AssetModelPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AssetModelPropertyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.compositeModelProperties = mapped
    }

    /**
     * @param argument The property definitions of the asset model. You can specify up to 200 properties per asset model.
     */
    @JvmName("mawsbsoqljxhcsff")
    public suspend fun compositeModelProperties(argument: suspend AssetModelPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AssetModelPropertyArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.compositeModelProperties = mapped
    }

    /**
     * @param values The property definitions of the asset model. You can specify up to 200 properties per asset model.
     */
    @JvmName("jgvkvmvymjrgyqxa")
    public suspend fun compositeModelProperties(vararg values: AssetModelPropertyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.compositeModelProperties = mapped
    }

    /**
     * @param value A description for the asset composite model.
     */
    @JvmName("ggweioycqpnrffcs")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The External ID of the composite model
     */
    @JvmName("lglrxrwwlvpinsng")
    public suspend fun externalId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalId = mapped
    }

    /**
     * @param value The Actual ID of the composite model
     */
    @JvmName("ipnnqvssojfwqqyg")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value A unique, friendly name for the asset composite model.
     */
    @JvmName("unvwysignukfrqhl")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The parent composite model External ID
     */
    @JvmName("lfsftysjatdgfpur")
    public suspend fun parentAssetModelCompositeModelExternalId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parentAssetModelCompositeModelExternalId = mapped
    }

    /**
     * @param value The path of the composite model. This is only for derived composite models
     */
    @JvmName("iykyluklniuxxhqv")
    public suspend fun path(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param values The path of the composite model. This is only for derived composite models
     */
    @JvmName("vbsfijcvmtsiqbji")
    public suspend fun path(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value The type of the composite model. For alarm composite models, this type is AWS/ALARM
     */
    @JvmName("uoqknnnpmobbimcg")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AssetModelCompositeModelArgs = AssetModelCompositeModelArgs(
        composedAssetModelId = composedAssetModelId,
        compositeModelProperties = compositeModelProperties,
        description = description,
        externalId = externalId,
        id = id,
        name = name ?: throw PulumiNullFieldException("name"),
        parentAssetModelCompositeModelExternalId = parentAssetModelCompositeModelExternalId,
        path = path,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy