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

com.pulumi.awsnative.iottwinmaker.kotlin.EntityArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iottwinmaker.kotlin

import com.pulumi.awsnative.iottwinmaker.EntityArgs.builder
import com.pulumi.awsnative.iottwinmaker.kotlin.inputs.EntityComponentArgs
import com.pulumi.awsnative.iottwinmaker.kotlin.inputs.EntityComponentArgsBuilder
import com.pulumi.awsnative.iottwinmaker.kotlin.inputs.EntityCompositeComponentArgs
import com.pulumi.awsnative.iottwinmaker.kotlin.inputs.EntityCompositeComponentArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::IoTTwinMaker::Entity
 * @property components A map that sets information about a component type.
 * @property compositeComponents A map that sets information about a composite component.
 * @property description The description of the entity.
 * @property entityId The ID of the entity.
 * @property entityName The name of the entity.
 * @property parentEntityId The ID of the parent entity.
 * @property tags A key-value pair to associate with a resource.
 * @property workspaceId The ID of the workspace.
 */
public data class EntityArgs(
    public val components: Output>? = null,
    public val compositeComponents: Output>? = null,
    public val description: Output? = null,
    public val entityId: Output? = null,
    public val entityName: Output? = null,
    public val parentEntityId: Output? = null,
    public val tags: Output>? = null,
    public val workspaceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iottwinmaker.EntityArgs =
        com.pulumi.awsnative.iottwinmaker.EntityArgs.builder()
            .components(
                components?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .compositeComponents(
                compositeComponents?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .entityId(entityId?.applyValue({ args0 -> args0 }))
            .entityName(entityName?.applyValue({ args0 -> args0 }))
            .parentEntityId(parentEntityId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .workspaceId(workspaceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EntityArgs].
 */
@PulumiTagMarker
public class EntityArgsBuilder internal constructor() {
    private var components: Output>? = null

    private var compositeComponents: Output>? = null

    private var description: Output? = null

    private var entityId: Output? = null

    private var entityName: Output? = null

    private var parentEntityId: Output? = null

    private var tags: Output>? = null

    private var workspaceId: Output? = null

    /**
     * @param value A map that sets information about a component type.
     */
    @JvmName("dhnwcuvgatrlhqvt")
    public suspend fun components(`value`: Output>) {
        this.components = value
    }

    /**
     * @param value A map that sets information about a composite component.
     */
    @JvmName("kwvvkdnmhhsrwier")
    public suspend fun compositeComponents(`value`: Output>) {
        this.compositeComponents = value
    }

    /**
     * @param value The description of the entity.
     */
    @JvmName("xhbibbjtiwwsfauo")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The ID of the entity.
     */
    @JvmName("corbrnpdjuyqktdl")
    public suspend fun entityId(`value`: Output) {
        this.entityId = value
    }

    /**
     * @param value The name of the entity.
     */
    @JvmName("tascodrenircmdqx")
    public suspend fun entityName(`value`: Output) {
        this.entityName = value
    }

    /**
     * @param value The ID of the parent entity.
     */
    @JvmName("qlqdqxulytupeciv")
    public suspend fun parentEntityId(`value`: Output) {
        this.parentEntityId = value
    }

    /**
     * @param value A key-value pair to associate with a resource.
     */
    @JvmName("wjsfumroeopkkcws")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The ID of the workspace.
     */
    @JvmName("fsfrndvtfxqqtlal")
    public suspend fun workspaceId(`value`: Output) {
        this.workspaceId = value
    }

    /**
     * @param value A map that sets information about a component type.
     */
    @JvmName("fqgupuoluqteewho")
    public suspend fun components(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.components = mapped
    }

    /**
     * @param argument A map that sets information about a component type.
     */
    @JvmName("vuckukpkwfikudxr")
    public suspend fun components(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                EntityComponentArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.components = mapped
    }

    /**
     * @param values A map that sets information about a component type.
     */
    @JvmName("veshjjqkwhneqjtw")
    public fun components(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.components = mapped
    }

    /**
     * @param value A map that sets information about a composite component.
     */
    @JvmName("gtxbpwthmkojrkvm")
    public suspend fun compositeComponents(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compositeComponents = mapped
    }

    /**
     * @param argument A map that sets information about a composite component.
     */
    @JvmName("ershhnejohreidha")
    public suspend fun compositeComponents(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                EntityCompositeComponentArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.compositeComponents = mapped
    }

    /**
     * @param values A map that sets information about a composite component.
     */
    @JvmName("ftiwhexlyoflevwb")
    public fun compositeComponents(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.compositeComponents = mapped
    }

    /**
     * @param value The description of the entity.
     */
    @JvmName("xiqrfxkttjknxnwt")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

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

    /**
     * @param value The name of the entity.
     */
    @JvmName("rtgxlrffjdmxkdhc")
    public suspend fun entityName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entityName = mapped
    }

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

    /**
     * @param value A key-value pair to associate with a resource.
     */
    @JvmName("yusgqacbbokgwfln")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A key-value pair to associate with a resource.
     */
    @JvmName("ndsqvxuxpyjqeswd")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

    internal fun build(): EntityArgs = EntityArgs(
        components = components,
        compositeComponents = compositeComponents,
        description = description,
        entityId = entityId,
        entityName = entityName,
        parentEntityId = parentEntityId,
        tags = tags,
        workspaceId = workspaceId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy