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

com.pulumi.awsnative.iottwinmaker.kotlin.inputs.EntityComponentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iottwinmaker.kotlin.inputs

import com.pulumi.awsnative.iottwinmaker.inputs.EntityComponentArgs.builder
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

/**
 *
 * @property componentName The name of the component.
 * @property componentTypeId The ID of the component type.
 * @property definedIn The name of the property definition set in the component.
 * @property description The description of the component.
 * @property properties An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
 * @property propertyGroups An object that maps strings to the property groups to set in the component type. Each string in the mapping must be unique to this object.
 * @property status The current status of the entity.
 */
public data class EntityComponentArgs(
    public val componentName: Output? = null,
    public val componentTypeId: Output? = null,
    public val definedIn: Output? = null,
    public val description: Output? = null,
    public val properties: Output>? = null,
    public val propertyGroups: Output>? = null,
    public val status: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iottwinmaker.inputs.EntityComponentArgs =
        com.pulumi.awsnative.iottwinmaker.inputs.EntityComponentArgs.builder()
            .componentName(componentName?.applyValue({ args0 -> args0 }))
            .componentTypeId(componentTypeId?.applyValue({ args0 -> args0 }))
            .definedIn(definedIn?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .propertyGroups(
                propertyGroups?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EntityComponentArgs].
 */
@PulumiTagMarker
public class EntityComponentArgsBuilder internal constructor() {
    private var componentName: Output? = null

    private var componentTypeId: Output? = null

    private var definedIn: Output? = null

    private var description: Output? = null

    private var properties: Output>? = null

    private var propertyGroups: Output>? = null

    private var status: Output? = null

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

    /**
     * @param value The ID of the component type.
     */
    @JvmName("cipotkmthxmenlbt")
    public suspend fun componentTypeId(`value`: Output) {
        this.componentTypeId = value
    }

    /**
     * @param value The name of the property definition set in the component.
     */
    @JvmName("sehrtmsgxdnmgbfm")
    public suspend fun definedIn(`value`: Output) {
        this.definedIn = value
    }

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

    /**
     * @param value An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
     */
    @JvmName("ehulikavdxivdxls")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value An object that maps strings to the property groups to set in the component type. Each string in the mapping must be unique to this object.
     */
    @JvmName("wxfqoyinsrkucgnp")
    public suspend fun propertyGroups(`value`: Output>) {
        this.propertyGroups = value
    }

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

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

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

    /**
     * @param value The name of the property definition set in the component.
     */
    @JvmName("rpylbnqvifucfcjt")
    public suspend fun definedIn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.definedIn = mapped
    }

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

    /**
     * @param value An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
     */
    @JvmName("mkmcpnehmdoevanm")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
     */
    @JvmName("kmrjmfvxgpvujifk")
    public suspend fun properties(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                EntityPropertyArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

    /**
     * @param values An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
     */
    @JvmName("ovccrpyiaxgndust")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value An object that maps strings to the property groups to set in the component type. Each string in the mapping must be unique to this object.
     */
    @JvmName("idbycoykiypwkgyg")
    public suspend fun propertyGroups(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.propertyGroups = mapped
    }

    /**
     * @param argument An object that maps strings to the property groups to set in the component type. Each string in the mapping must be unique to this object.
     */
    @JvmName("ongitwmgvsoymihh")
    public suspend fun propertyGroups(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                EntityPropertyGroupArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.propertyGroups = mapped
    }

    /**
     * @param values An object that maps strings to the property groups to set in the component type. Each string in the mapping must be unique to this object.
     */
    @JvmName("adkwyvmpkghduqeo")
    public fun propertyGroups(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.propertyGroups = mapped
    }

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

    /**
     * @param argument The current status of the entity.
     */
    @JvmName("maxvdjqcjnlqjncl")
    public suspend fun status(argument: suspend EntityStatusArgsBuilder.() -> Unit) {
        val toBeMapped = EntityStatusArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.status = mapped
    }

    internal fun build(): EntityComponentArgs = EntityComponentArgs(
        componentName = componentName,
        componentTypeId = componentTypeId,
        definedIn = definedIn,
        description = description,
        properties = properties,
        propertyGroups = propertyGroups,
        status = status,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy