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

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

import com.pulumi.awsnative.connect.inputs.TaskTemplateFieldArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.TaskTemplateFieldType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 * A task template field object.
 * @property description The description of the task template's field
 * @property id The unique identifier for the field.
 * @property singleSelectOptions list of field options to be used with single select
 * @property type Indicates the type of field. Following are the valid field types: `NAME` `DESCRIPTION` | `SCHEDULED_TIME` | `QUICK_CONNECT` | `URL` | `NUMBER` | `TEXT` | `TEXT_AREA` | `DATE_TIME` | `BOOLEAN` | `SINGLE_SELECT` | `EMAIL`
 */
public data class TaskTemplateFieldArgs(
    public val description: Output? = null,
    public val id: Output,
    public val singleSelectOptions: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.TaskTemplateFieldArgs =
        com.pulumi.awsnative.connect.inputs.TaskTemplateFieldArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .id(id.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .singleSelectOptions(singleSelectOptions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [TaskTemplateFieldArgs].
 */
@PulumiTagMarker
public class TaskTemplateFieldArgsBuilder internal constructor() {
    private var description: Output? = null

    private var id: Output? = null

    private var singleSelectOptions: Output>? = null

    private var type: Output? = null

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

    /**
     * @param value The unique identifier for the field.
     */
    @JvmName("uylexpclmydydwjo")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value list of field options to be used with single select
     */
    @JvmName("drmffuivqwyvkhxt")
    public suspend fun singleSelectOptions(`value`: Output>) {
        this.singleSelectOptions = value
    }

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

    /**
     * @param values list of field options to be used with single select
     */
    @JvmName("yothvkejhcmsfiiu")
    public suspend fun singleSelectOptions(values: List>) {
        this.singleSelectOptions = Output.all(values)
    }

    /**
     * @param value Indicates the type of field. Following are the valid field types: `NAME` `DESCRIPTION` | `SCHEDULED_TIME` | `QUICK_CONNECT` | `URL` | `NUMBER` | `TEXT` | `TEXT_AREA` | `DATE_TIME` | `BOOLEAN` | `SINGLE_SELECT` | `EMAIL`
     */
    @JvmName("ykvtpswvjiwivlcr")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value The unique identifier for the field.
     */
    @JvmName("leonkthlkrywxqmj")
    public suspend fun id(`value`: TaskTemplateFieldIdentifierArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param argument The unique identifier for the field.
     */
    @JvmName("vjnnuktmeuqufudw")
    public suspend fun id(argument: suspend TaskTemplateFieldIdentifierArgsBuilder.() -> Unit) {
        val toBeMapped = TaskTemplateFieldIdentifierArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.id = mapped
    }

    /**
     * @param value list of field options to be used with single select
     */
    @JvmName("uadchojmtfekkoef")
    public suspend fun singleSelectOptions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.singleSelectOptions = mapped
    }

    /**
     * @param values list of field options to be used with single select
     */
    @JvmName("oahdyfhnbuhudrhl")
    public suspend fun singleSelectOptions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.singleSelectOptions = mapped
    }

    /**
     * @param value Indicates the type of field. Following are the valid field types: `NAME` `DESCRIPTION` | `SCHEDULED_TIME` | `QUICK_CONNECT` | `URL` | `NUMBER` | `TEXT` | `TEXT_AREA` | `DATE_TIME` | `BOOLEAN` | `SINGLE_SELECT` | `EMAIL`
     */
    @JvmName("pjlgapwvlixaewyb")
    public suspend fun type(`value`: TaskTemplateFieldType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): TaskTemplateFieldArgs = TaskTemplateFieldArgs(
        description = description,
        id = id ?: throw PulumiNullFieldException("id"),
        singleSelectOptions = singleSelectOptions,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy