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

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

import com.pulumi.awsnative.connect.kotlin.enums.TaskTemplateFieldType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * 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 TaskTemplateField(
    public val description: String? = null,
    public val id: TaskTemplateFieldIdentifier,
    public val singleSelectOptions: List? = null,
    public val type: TaskTemplateFieldType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.connect.outputs.TaskTemplateField): TaskTemplateField = TaskTemplateField(
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().let({ args0 ->
                com.pulumi.awsnative.connect.kotlin.outputs.TaskTemplateFieldIdentifier.Companion.toKotlin(args0)
            }),
            singleSelectOptions = javaType.singleSelectOptions().map({ args0 -> args0 }),
            type = javaType.type().let({ args0 ->
                com.pulumi.awsnative.connect.kotlin.enums.TaskTemplateFieldType.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy