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

com.pulumi.awsnative.wisdom.kotlin.AssistantAssociationArgs.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.wisdom.kotlin

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.wisdom.AssistantAssociationArgs.builder
import com.pulumi.awsnative.wisdom.kotlin.enums.AssistantAssociationAssociationType
import com.pulumi.awsnative.wisdom.kotlin.inputs.AssistantAssociationAssociationDataArgs
import com.pulumi.awsnative.wisdom.kotlin.inputs.AssistantAssociationAssociationDataArgsBuilder
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

/**
 * Definition of AWS::Wisdom::AssistantAssociation Resource Type
 * @property assistantId The identifier of the Wisdom assistant.
 * @property association The identifier of the associated resource.
 * @property associationType The type of association.
 * @property tags The tags used to organize, track, or control access for this resource.
 */
public data class AssistantAssociationArgs(
    public val assistantId: Output? = null,
    public val association: Output? = null,
    public val associationType: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wisdom.AssistantAssociationArgs =
        com.pulumi.awsnative.wisdom.AssistantAssociationArgs.builder()
            .assistantId(assistantId?.applyValue({ args0 -> args0 }))
            .association(association?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .associationType(associationType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AssistantAssociationArgs].
 */
@PulumiTagMarker
public class AssistantAssociationArgsBuilder internal constructor() {
    private var assistantId: Output? = null

    private var association: Output? = null

    private var associationType: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The identifier of the Wisdom assistant.
     */
    @JvmName("npobxhexwrmabgua")
    public suspend fun assistantId(`value`: Output) {
        this.assistantId = value
    }

    /**
     * @param value The identifier of the associated resource.
     */
    @JvmName("bmongevhxcphulhb")
    public suspend fun association(`value`: Output) {
        this.association = value
    }

    /**
     * @param value The type of association.
     */
    @JvmName("uhxwqabteearyeqk")
    public suspend fun associationType(`value`: Output) {
        this.associationType = value
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("ifcmfnujdeacrdaa")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags used to organize, track, or control access for this resource.
     */
    @JvmName("gluihbptauikieyr")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The identifier of the Wisdom assistant.
     */
    @JvmName("ygdnnysawvnkboeb")
    public suspend fun assistantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assistantId = mapped
    }

    /**
     * @param value The identifier of the associated resource.
     */
    @JvmName("wbxtvcpqpagypyod")
    public suspend fun association(`value`: AssistantAssociationAssociationDataArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.association = mapped
    }

    /**
     * @param argument The identifier of the associated resource.
     */
    @JvmName("iuaelmvcuxfgycfc")
    public suspend fun association(argument: suspend AssistantAssociationAssociationDataArgsBuilder.() -> Unit) {
        val toBeMapped = AssistantAssociationAssociationDataArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.association = mapped
    }

    /**
     * @param value The type of association.
     */
    @JvmName("twygcgcnsvathluy")
    public suspend fun associationType(`value`: AssistantAssociationAssociationType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.associationType = mapped
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("xtrmxxdtewxvoitf")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("tlmitdqxyebdlnyr")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("xrekdubfsxkwjtef")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("jgittndihagvyhrx")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags used to organize, track, or control access for this resource.
     */
    @JvmName("wboepifxkyuwrebj")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AssistantAssociationArgs = AssistantAssociationArgs(
        assistantId = assistantId,
        association = association,
        associationType = associationType,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy