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

com.pulumi.awsnative.bedrock.kotlin.inputs.PromptTextPromptTemplateConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.bedrock.kotlin.inputs

import com.pulumi.awsnative.bedrock.inputs.PromptTextPromptTemplateConfigurationArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Configuration for text prompt template
 * @property inputVariables List of input variables
 * @property text Prompt content for String prompt template
 * @property textS3Location
 */
public data class PromptTextPromptTemplateConfigurationArgs(
    public val inputVariables: Output>? = null,
    public val text: Output? = null,
    public val textS3Location: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.bedrock.inputs.PromptTextPromptTemplateConfigurationArgs =
        com.pulumi.awsnative.bedrock.inputs.PromptTextPromptTemplateConfigurationArgs.builder()
            .inputVariables(
                inputVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .text(text?.applyValue({ args0 -> args0 }))
            .textS3Location(
                textS3Location?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PromptTextPromptTemplateConfigurationArgs].
 */
@PulumiTagMarker
public class PromptTextPromptTemplateConfigurationArgsBuilder internal constructor() {
    private var inputVariables: Output>? = null

    private var text: Output? = null

    private var textS3Location: Output? = null

    /**
     * @param value List of input variables
     */
    @JvmName("paegqyuoqfmepoeo")
    public suspend fun inputVariables(`value`: Output>) {
        this.inputVariables = value
    }

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

    /**
     * @param values List of input variables
     */
    @JvmName("wgcdorbadqnddywb")
    public suspend fun inputVariables(values: List>) {
        this.inputVariables = Output.all(values)
    }

    /**
     * @param value Prompt content for String prompt template
     */
    @JvmName("bivcjfvteqbajqul")
    public suspend fun text(`value`: Output) {
        this.text = value
    }

    /**
     * @param value
     */
    @JvmName("gviamjrcmtxhrblk")
    public suspend fun textS3Location(`value`: Output) {
        this.textS3Location = value
    }

    /**
     * @param value List of input variables
     */
    @JvmName("vcxfkhvnxxryuehs")
    public suspend fun inputVariables(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputVariables = mapped
    }

    /**
     * @param argument List of input variables
     */
    @JvmName("tfmcxbeycskgttji")
    public suspend fun inputVariables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PromptInputVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputVariables = mapped
    }

    /**
     * @param argument List of input variables
     */
    @JvmName("sdgsuqijlnwxxxha")
    public suspend fun inputVariables(vararg argument: suspend PromptInputVariableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PromptInputVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputVariables = mapped
    }

    /**
     * @param argument List of input variables
     */
    @JvmName("plxainuquadwbitv")
    public suspend fun inputVariables(argument: suspend PromptInputVariableArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PromptInputVariableArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.inputVariables = mapped
    }

    /**
     * @param values List of input variables
     */
    @JvmName("mpruorltykcwesai")
    public suspend fun inputVariables(vararg values: PromptInputVariableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputVariables = mapped
    }

    /**
     * @param value Prompt content for String prompt template
     */
    @JvmName("otvirdwnjfctdyvg")
    public suspend fun text(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.text = mapped
    }

    /**
     * @param value
     */
    @JvmName("rcjvdwcmwmcrbrdr")
    public suspend fun textS3Location(`value`: PromptTextS3LocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.textS3Location = mapped
    }

    /**
     * @param argument
     */
    @JvmName("whuqvdbygdjgoxmi")
    public suspend fun textS3Location(argument: suspend PromptTextS3LocationArgsBuilder.() -> Unit) {
        val toBeMapped = PromptTextS3LocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.textS3Location = mapped
    }

    internal fun build(): PromptTextPromptTemplateConfigurationArgs =
        PromptTextPromptTemplateConfigurationArgs(
            inputVariables = inputVariables,
            text = text,
            textS3Location = textS3Location,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy