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

com.pulumi.aws.bedrock.kotlin.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.bedrock.kotlin.inputs

import com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs.builder
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.Double
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property levelConfigurations Maximum number of tokens to include in a chunk. Must contain two `level_configurations`. See `level_configurations` for details.
 * @property overlapTokens The number of tokens to repeat across chunks in the same layer.
 */
public data class
AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs(
    public val levelConfigurations: Output>,
    public val overlapTokens: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs =
        com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs.builder()
            .levelConfigurations(
                levelConfigurations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .overlapTokens(overlapTokens.applyValue({ args0 -> args0 })).build()
}

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

    private var overlapTokens: Output? = null

    /**
     * @param value Maximum number of tokens to include in a chunk. Must contain two `level_configurations`. See `level_configurations` for details.
     */
    @JvmName("dyscwefdhbqvdtli")
    public suspend fun levelConfigurations(`value`: Output>) {
        this.levelConfigurations = value
    }

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

    /**
     * @param values Maximum number of tokens to include in a chunk. Must contain two `level_configurations`. See `level_configurations` for details.
     */
    @JvmName("mmoqurycycryyubt")
    public suspend fun levelConfigurations(values: List>) {
        this.levelConfigurations = Output.all(values)
    }

    /**
     * @param value The number of tokens to repeat across chunks in the same layer.
     */
    @JvmName("hbqtsxhiqclkujlc")
    public suspend fun overlapTokens(`value`: Output) {
        this.overlapTokens = value
    }

    /**
     * @param value Maximum number of tokens to include in a chunk. Must contain two `level_configurations`. See `level_configurations` for details.
     */
    @JvmName("chrjdienmhbxpuvv")
    public suspend fun levelConfigurations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.levelConfigurations = mapped
    }

    /**
     * @param argument Maximum number of tokens to include in a chunk. Must contain two `level_configurations`. See `level_configurations` for details.
     */
    @JvmName("wumwldrkfcclrjca")
    public suspend fun levelConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.levelConfigurations = mapped
    }

    /**
     * @param argument Maximum number of tokens to include in a chunk. Must contain two `level_configurations`. See `level_configurations` for details.
     */
    @JvmName("mhjrlpwvitnrxshx")
    public suspend fun levelConfigurations(vararg argument: suspend AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.levelConfigurations = mapped
    }

    /**
     * @param argument Maximum number of tokens to include in a chunk. Must contain two `level_configurations`. See `level_configurations` for details.
     */
    @JvmName("wlfunuvvoevnaigq")
    public suspend fun levelConfigurations(argument: suspend AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.levelConfigurations = mapped
    }

    /**
     * @param values Maximum number of tokens to include in a chunk. Must contain two `level_configurations`. See `level_configurations` for details.
     */
    @JvmName("mlocflixejalmrci")
    public suspend fun levelConfigurations(vararg values: AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.levelConfigurations = mapped
    }

    /**
     * @param value The number of tokens to repeat across chunks in the same layer.
     */
    @JvmName("tffndkgxustubgpi")
    public suspend fun overlapTokens(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overlapTokens = mapped
    }

    internal fun build(): AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs =
        AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs(
            levelConfigurations = levelConfigurations ?: throw PulumiNullFieldException("levelConfigurations"),
            overlapTokens = overlapTokens ?: throw PulumiNullFieldException("overlapTokens"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy