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

com.pulumi.awsnative.iotsitewise.kotlin.AssetArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotsitewise.kotlin

import com.pulumi.awsnative.iotsitewise.AssetArgs.builder
import com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetHierarchyArgs
import com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetHierarchyArgsBuilder
import com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetPropertyArgs
import com.pulumi.awsnative.iotsitewise.kotlin.inputs.AssetPropertyArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * Resource schema for AWS::IoTSiteWise::Asset
 * @property assetDescription A description for the asset
 * @property assetExternalId The External ID of the asset
 * @property assetHierarchies A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
 * @property assetModelId The ID of the asset model from which to create the asset.
 * @property assetName A unique, friendly name for the asset.
 * @property assetProperties The list of asset properties for the asset.
 * This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
 * @property tags A list of key-value pairs that contain metadata for the asset.
 */
public data class AssetArgs(
    public val assetDescription: Output? = null,
    public val assetExternalId: Output? = null,
    public val assetHierarchies: Output>? = null,
    public val assetModelId: Output? = null,
    public val assetName: Output? = null,
    public val assetProperties: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotsitewise.AssetArgs =
        com.pulumi.awsnative.iotsitewise.AssetArgs.builder()
            .assetDescription(assetDescription?.applyValue({ args0 -> args0 }))
            .assetExternalId(assetExternalId?.applyValue({ args0 -> args0 }))
            .assetHierarchies(
                assetHierarchies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .assetModelId(assetModelId?.applyValue({ args0 -> args0 }))
            .assetName(assetName?.applyValue({ args0 -> args0 }))
            .assetProperties(
                assetProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AssetArgs].
 */
@PulumiTagMarker
public class AssetArgsBuilder internal constructor() {
    private var assetDescription: Output? = null

    private var assetExternalId: Output? = null

    private var assetHierarchies: Output>? = null

    private var assetModelId: Output? = null

    private var assetName: Output? = null

    private var assetProperties: Output>? = null

    private var tags: Output>? = null

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

    /**
     * @param value The External ID of the asset
     */
    @JvmName("awqidynulbnpvajn")
    public suspend fun assetExternalId(`value`: Output) {
        this.assetExternalId = value
    }

    /**
     * @param value A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
     */
    @JvmName("rkbywsutywjofmsj")
    public suspend fun assetHierarchies(`value`: Output>) {
        this.assetHierarchies = value
    }

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

    /**
     * @param values A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
     */
    @JvmName("rwonrebpaideducv")
    public suspend fun assetHierarchies(values: List>) {
        this.assetHierarchies = Output.all(values)
    }

    /**
     * @param value The ID of the asset model from which to create the asset.
     */
    @JvmName("xeaqafjprtfokthf")
    public suspend fun assetModelId(`value`: Output) {
        this.assetModelId = value
    }

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

    /**
     * @param value The list of asset properties for the asset.
     * This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
     */
    @JvmName("bdcolaakldsflobr")
    public suspend fun assetProperties(`value`: Output>) {
        this.assetProperties = value
    }

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

    /**
     * @param values The list of asset properties for the asset.
     * This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
     */
    @JvmName("cfgdaxotjivmytgo")
    public suspend fun assetProperties(values: List>) {
        this.assetProperties = Output.all(values)
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the asset.
     */
    @JvmName("kiyijucbghrstueo")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of key-value pairs that contain metadata for the asset.
     */
    @JvmName("fkvkjilcxvgjokve")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

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

    /**
     * @param value A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
     */
    @JvmName("rthcifoyuitarryb")
    public suspend fun assetHierarchies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assetHierarchies = mapped
    }

    /**
     * @param argument A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
     */
    @JvmName("umyjlyiycilfqjku")
    public suspend fun assetHierarchies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AssetHierarchyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.assetHierarchies = mapped
    }

    /**
     * @param argument A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
     */
    @JvmName("rewpnblgfhqjimsp")
    public suspend fun assetHierarchies(vararg argument: suspend AssetHierarchyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AssetHierarchyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.assetHierarchies = mapped
    }

    /**
     * @param argument A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
     */
    @JvmName("jxeoohkkgujxwqky")
    public suspend fun assetHierarchies(argument: suspend AssetHierarchyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AssetHierarchyArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.assetHierarchies = mapped
    }

    /**
     * @param values A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
     */
    @JvmName("ffdftwfjunyqgvui")
    public suspend fun assetHierarchies(vararg values: AssetHierarchyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.assetHierarchies = mapped
    }

    /**
     * @param value The ID of the asset model from which to create the asset.
     */
    @JvmName("bfckidhoqfjavhee")
    public suspend fun assetModelId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assetModelId = mapped
    }

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

    /**
     * @param value The list of asset properties for the asset.
     * This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
     */
    @JvmName("vtetkhwjqkwqudbu")
    public suspend fun assetProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assetProperties = mapped
    }

    /**
     * @param argument The list of asset properties for the asset.
     * This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
     */
    @JvmName("yiasiirtfjwyehha")
    public suspend fun assetProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AssetPropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.assetProperties = mapped
    }

    /**
     * @param argument The list of asset properties for the asset.
     * This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
     */
    @JvmName("tnsguvbfnvcsoenc")
    public suspend fun assetProperties(vararg argument: suspend AssetPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AssetPropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.assetProperties = mapped
    }

    /**
     * @param argument The list of asset properties for the asset.
     * This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
     */
    @JvmName("actgucmtfqbiapcq")
    public suspend fun assetProperties(argument: suspend AssetPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AssetPropertyArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.assetProperties = mapped
    }

    /**
     * @param values The list of asset properties for the asset.
     * This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
     */
    @JvmName("dvkdbsxgvyksikew")
    public suspend fun assetProperties(vararg values: AssetPropertyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.assetProperties = mapped
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the asset.
     */
    @JvmName("ednkjcjgdrqtbcfk")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the asset.
     */
    @JvmName("neccosubcalokoor")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the asset.
     */
    @JvmName("wdeglufcicmbyktd")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the asset.
     */
    @JvmName("vxcuhjhtjeqvvefy")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of key-value pairs that contain metadata for the asset.
     */
    @JvmName("nnadprwkquwytsia")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AssetArgs = AssetArgs(
        assetDescription = assetDescription,
        assetExternalId = assetExternalId,
        assetHierarchies = assetHierarchies,
        assetModelId = assetModelId,
        assetName = assetName,
        assetProperties = assetProperties,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy