
com.pulumi.awsnative.bedrock.kotlin.inputs.GetDataSourcePlainArgs.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.GetDataSourcePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property dataSourceId Identifier for a resource.
* @property knowledgeBaseId The unique identifier of the knowledge base to which to add the data source.
*/
public data class GetDataSourcePlainArgs(
public val dataSourceId: String,
public val knowledgeBaseId: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.GetDataSourcePlainArgs =
com.pulumi.awsnative.bedrock.inputs.GetDataSourcePlainArgs.builder()
.dataSourceId(dataSourceId.let({ args0 -> args0 }))
.knowledgeBaseId(knowledgeBaseId.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetDataSourcePlainArgs].
*/
@PulumiTagMarker
public class GetDataSourcePlainArgsBuilder internal constructor() {
private var dataSourceId: String? = null
private var knowledgeBaseId: String? = null
/**
* @param value Identifier for a resource.
*/
@JvmName("aggigeeisslkntdc")
public suspend fun dataSourceId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.dataSourceId = mapped
}
/**
* @param value The unique identifier of the knowledge base to which to add the data source.
*/
@JvmName("gmslovqrioshtlrt")
public suspend fun knowledgeBaseId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.knowledgeBaseId = mapped
}
internal fun build(): GetDataSourcePlainArgs = GetDataSourcePlainArgs(
dataSourceId = dataSourceId ?: throw PulumiNullFieldException("dataSourceId"),
knowledgeBaseId = knowledgeBaseId ?: throw PulumiNullFieldException("knowledgeBaseId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy