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

com.pulumi.awsnative.connect.kotlin.TaskTemplateArgs.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.connect.kotlin

import com.pulumi.awsnative.connect.TaskTemplateArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.TaskTemplateStatus
import com.pulumi.awsnative.connect.kotlin.inputs.ConstraintsPropertiesArgs
import com.pulumi.awsnative.connect.kotlin.inputs.ConstraintsPropertiesArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.TaskTemplateDefaultFieldValueArgs
import com.pulumi.awsnative.connect.kotlin.inputs.TaskTemplateDefaultFieldValueArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.TaskTemplateFieldArgs
import com.pulumi.awsnative.connect.kotlin.inputs.TaskTemplateFieldArgsBuilder
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 Type definition for AWS::Connect::TaskTemplate.
 * @property clientToken A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
 * @property constraints The constraints for the task template
 * @property contactFlowArn The identifier of the contact flow.
 * @property defaults The default values for fields when a task is created by referencing this template.
 * @property description The description of the task template.
 * @property fields The list of task template's fields
 * @property instanceArn The identifier (arn) of the instance.
 * @property name The name of the task template.
 * @property status The status of the task template.
 * @property tags One or more tags.
 */
public data class TaskTemplateArgs(
    public val clientToken: Output? = null,
    public val constraints: Output? = null,
    public val contactFlowArn: Output? = null,
    public val defaults: Output>? = null,
    public val description: Output? = null,
    public val fields: Output>? = null,
    public val instanceArn: Output? = null,
    public val name: Output? = null,
    public val status: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.TaskTemplateArgs =
        com.pulumi.awsnative.connect.TaskTemplateArgs.builder()
            .clientToken(clientToken?.applyValue({ args0 -> args0 }))
            .constraints(constraints?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .contactFlowArn(contactFlowArn?.applyValue({ args0 -> args0 }))
            .defaults(
                defaults?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .fields(fields?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .instanceArn(instanceArn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TaskTemplateArgs].
 */
@PulumiTagMarker
public class TaskTemplateArgsBuilder internal constructor() {
    private var clientToken: Output? = null

    private var constraints: Output? = null

    private var contactFlowArn: Output? = null

    private var defaults: Output>? = null

    private var description: Output? = null

    private var fields: Output>? = null

    private var instanceArn: Output? = null

    private var name: Output? = null

    private var status: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
     */
    @JvmName("xxpmkoorcbknnwby")
    public suspend fun clientToken(`value`: Output) {
        this.clientToken = value
    }

    /**
     * @param value The constraints for the task template
     */
    @JvmName("ottkvtahhhcsfgbs")
    public suspend fun constraints(`value`: Output) {
        this.constraints = value
    }

    /**
     * @param value The identifier of the contact flow.
     */
    @JvmName("ankrlqkbfkvkiuwd")
    public suspend fun contactFlowArn(`value`: Output) {
        this.contactFlowArn = value
    }

    /**
     * @param value The default values for fields when a task is created by referencing this template.
     */
    @JvmName("syvpbgmanbohtuth")
    public suspend fun defaults(`value`: Output>) {
        this.defaults = value
    }

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

    /**
     * @param values The default values for fields when a task is created by referencing this template.
     */
    @JvmName("wntgauelrtetrthq")
    public suspend fun defaults(values: List>) {
        this.defaults = Output.all(values)
    }

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

    /**
     * @param value The list of task template's fields
     */
    @JvmName("uqcdyekhgkuoynor")
    public suspend fun fields(`value`: Output>) {
        this.fields = value
    }

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

    /**
     * @param values The list of task template's fields
     */
    @JvmName("otetyqdlgdyfgwej")
    public suspend fun fields(values: List>) {
        this.fields = Output.all(values)
    }

    /**
     * @param value The identifier (arn) of the instance.
     */
    @JvmName("tjcxdsjvekowcgjv")
    public suspend fun instanceArn(`value`: Output) {
        this.instanceArn = value
    }

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

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

    /**
     * @param value One or more tags.
     */
    @JvmName("nxrbhqhpdigjaedw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values One or more tags.
     */
    @JvmName("djtjdftpfgcihavk")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
     */
    @JvmName("vlpmwggcbdvhjpiy")
    public suspend fun clientToken(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientToken = mapped
    }

    /**
     * @param value The constraints for the task template
     */
    @JvmName("emorsyoxkuavfnmt")
    public suspend fun constraints(`value`: ConstraintsPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.constraints = mapped
    }

    /**
     * @param argument The constraints for the task template
     */
    @JvmName("pmxunpeogtbejrwe")
    public suspend fun constraints(argument: suspend ConstraintsPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ConstraintsPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.constraints = mapped
    }

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

    /**
     * @param value The default values for fields when a task is created by referencing this template.
     */
    @JvmName("kqghrbbvaiiuwsqb")
    public suspend fun defaults(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaults = mapped
    }

    /**
     * @param argument The default values for fields when a task is created by referencing this template.
     */
    @JvmName("gsaibwliocsptahb")
    public suspend fun defaults(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TaskTemplateDefaultFieldValueArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.defaults = mapped
    }

    /**
     * @param argument The default values for fields when a task is created by referencing this template.
     */
    @JvmName("xqxibayexdoqcwfs")
    public suspend fun defaults(vararg argument: suspend TaskTemplateDefaultFieldValueArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TaskTemplateDefaultFieldValueArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.defaults = mapped
    }

    /**
     * @param argument The default values for fields when a task is created by referencing this template.
     */
    @JvmName("aqtsllxmbycdlmtj")
    public suspend fun defaults(argument: suspend TaskTemplateDefaultFieldValueArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TaskTemplateDefaultFieldValueArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.defaults = mapped
    }

    /**
     * @param values The default values for fields when a task is created by referencing this template.
     */
    @JvmName("kubrlctcnbxponga")
    public suspend fun defaults(vararg values: TaskTemplateDefaultFieldValueArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaults = mapped
    }

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

    /**
     * @param value The list of task template's fields
     */
    @JvmName("itcagtirercjssme")
    public suspend fun fields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fields = mapped
    }

    /**
     * @param argument The list of task template's fields
     */
    @JvmName("cooulqsoordetcjj")
    public suspend fun fields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TaskTemplateFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param argument The list of task template's fields
     */
    @JvmName("visvqjbsklyjxngy")
    public suspend fun fields(vararg argument: suspend TaskTemplateFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TaskTemplateFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param argument The list of task template's fields
     */
    @JvmName("qytcagmyoadeykuj")
    public suspend fun fields(argument: suspend TaskTemplateFieldArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TaskTemplateFieldArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param values The list of task template's fields
     */
    @JvmName("hpmkjwtesqjdvmix")
    public suspend fun fields(vararg values: TaskTemplateFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fields = mapped
    }

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

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

    /**
     * @param value The status of the task template.
     */
    @JvmName("cmbwnmbflfqfufps")
    public suspend fun status(`value`: TaskTemplateStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value One or more tags.
     */
    @JvmName("mkgiwwdxlbrwtsvi")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument One or more tags.
     */
    @JvmName("votocfvfqtopevqw")
    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 One or more tags.
     */
    @JvmName("qdriujtprovbrxjl")
    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 One or more tags.
     */
    @JvmName("btfmdbhelemkjnmd")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values One or more tags.
     */
    @JvmName("ophuojjhwgiocxly")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): TaskTemplateArgs = TaskTemplateArgs(
        clientToken = clientToken,
        constraints = constraints,
        contactFlowArn = contactFlowArn,
        defaults = defaults,
        description = description,
        fields = fields,
        instanceArn = instanceArn,
        name = name,
        status = status,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy