com.pulumi.awsnative.bedrock.kotlin.inputs.AgentParameterDetailArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.bedrock.kotlin.inputs
import com.pulumi.awsnative.bedrock.inputs.AgentParameterDetailArgs.builder
import com.pulumi.awsnative.bedrock.kotlin.enums.AgentType
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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Parameter detail
* @property description Description of function parameter.
* @property required Information about if a parameter is required for function call. Default to false.
* @property type The data type of the parameter.
*/
public data class AgentParameterDetailArgs(
public val description: Output? = null,
public val required: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.AgentParameterDetailArgs =
com.pulumi.awsnative.bedrock.inputs.AgentParameterDetailArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.required(required?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AgentParameterDetailArgs].
*/
@PulumiTagMarker
public class AgentParameterDetailArgsBuilder internal constructor() {
private var description: Output? = null
private var required: Output? = null
private var type: Output? = null
/**
* @param value Description of function parameter.
*/
@JvmName("olkaglbytoxfvkqr")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Information about if a parameter is required for function call. Default to false.
*/
@JvmName("lteennyjfpltbpou")
public suspend fun required(`value`: Output) {
this.required = value
}
/**
* @param value The data type of the parameter.
*/
@JvmName("batfbrdhfrvmcogi")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Description of function parameter.
*/
@JvmName("wfkrwcgdnuuvdgcd")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Information about if a parameter is required for function call. Default to false.
*/
@JvmName("wmyafncvowadgcxg")
public suspend fun required(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.required = mapped
}
/**
* @param value The data type of the parameter.
*/
@JvmName("uylqhqbtetkpystq")
public suspend fun type(`value`: AgentType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): AgentParameterDetailArgs = AgentParameterDetailArgs(
description = description,
required = required,
type = type ?: throw PulumiNullFieldException("type"),
)
}