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

com.pulumi.alicloud.ots.kotlin.inputs.SearchIndexSchemaArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.ots.kotlin.inputs

import com.pulumi.alicloud.ots.inputs.SearchIndexSchemaArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property fieldSchemas A list of field schemas. See `field_schema` below.
 * @property indexSettings The settings of the search index, including routingFields. See `index_setting` below.
 * @property indexSorts The presorting settings of the search index, including sorters. If no value is specified for the indexSort parameter, field values are sorted by primary key by default. See `index_sort` below.
 */
public data class SearchIndexSchemaArgs(
    public val fieldSchemas: Output>,
    public val indexSettings: Output>? = null,
    public val indexSorts: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.ots.inputs.SearchIndexSchemaArgs =
        com.pulumi.alicloud.ots.inputs.SearchIndexSchemaArgs.builder()
            .fieldSchemas(
                fieldSchemas.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .indexSettings(
                indexSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .indexSorts(
                indexSorts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var indexSettings: Output>? = null

    private var indexSorts: Output>? = null

    /**
     * @param value A list of field schemas. See `field_schema` below.
     */
    @JvmName("hvdroapwvorcecfx")
    public suspend fun fieldSchemas(`value`: Output>) {
        this.fieldSchemas = value
    }

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

    /**
     * @param values A list of field schemas. See `field_schema` below.
     */
    @JvmName("wmfxnyvkwvywuosq")
    public suspend fun fieldSchemas(values: List>) {
        this.fieldSchemas = Output.all(values)
    }

    /**
     * @param value The settings of the search index, including routingFields. See `index_setting` below.
     */
    @JvmName("thyjdeebllpnndhu")
    public suspend fun indexSettings(`value`: Output>) {
        this.indexSettings = value
    }

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

    /**
     * @param values The settings of the search index, including routingFields. See `index_setting` below.
     */
    @JvmName("ogpwtwgnxsevthph")
    public suspend fun indexSettings(values: List>) {
        this.indexSettings = Output.all(values)
    }

    /**
     * @param value The presorting settings of the search index, including sorters. If no value is specified for the indexSort parameter, field values are sorted by primary key by default. See `index_sort` below.
     */
    @JvmName("uttirwxsxvhtjamn")
    public suspend fun indexSorts(`value`: Output>) {
        this.indexSorts = value
    }

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

    /**
     * @param values The presorting settings of the search index, including sorters. If no value is specified for the indexSort parameter, field values are sorted by primary key by default. See `index_sort` below.
     */
    @JvmName("unavwfgvnwoomtgl")
    public suspend fun indexSorts(values: List>) {
        this.indexSorts = Output.all(values)
    }

    /**
     * @param value A list of field schemas. See `field_schema` below.
     */
    @JvmName("dfaanscgkchwjdxe")
    public suspend fun fieldSchemas(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldSchemas = mapped
    }

    /**
     * @param argument A list of field schemas. See `field_schema` below.
     */
    @JvmName("sdavsdwawalxyvso")
    public suspend fun fieldSchemas(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SearchIndexSchemaFieldSchemaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldSchemas = mapped
    }

    /**
     * @param argument A list of field schemas. See `field_schema` below.
     */
    @JvmName("kuitetpqaiydbbpt")
    public suspend fun fieldSchemas(vararg argument: suspend SearchIndexSchemaFieldSchemaArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SearchIndexSchemaFieldSchemaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldSchemas = mapped
    }

    /**
     * @param argument A list of field schemas. See `field_schema` below.
     */
    @JvmName("jjsdwmsiuytqolxy")
    public suspend fun fieldSchemas(argument: suspend SearchIndexSchemaFieldSchemaArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SearchIndexSchemaFieldSchemaArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.fieldSchemas = mapped
    }

    /**
     * @param values A list of field schemas. See `field_schema` below.
     */
    @JvmName("jttbnskoosnbjvwo")
    public suspend fun fieldSchemas(vararg values: SearchIndexSchemaFieldSchemaArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldSchemas = mapped
    }

    /**
     * @param value The settings of the search index, including routingFields. See `index_setting` below.
     */
    @JvmName("thceeuxnevborgcv")
    public suspend fun indexSettings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.indexSettings = mapped
    }

    /**
     * @param argument The settings of the search index, including routingFields. See `index_setting` below.
     */
    @JvmName("audnjxpdlqvlyxlc")
    public suspend fun indexSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SearchIndexSchemaIndexSettingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.indexSettings = mapped
    }

    /**
     * @param argument The settings of the search index, including routingFields. See `index_setting` below.
     */
    @JvmName("tfeestiiocbpmcsd")
    public suspend fun indexSettings(vararg argument: suspend SearchIndexSchemaIndexSettingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SearchIndexSchemaIndexSettingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.indexSettings = mapped
    }

    /**
     * @param argument The settings of the search index, including routingFields. See `index_setting` below.
     */
    @JvmName("aoikbkuyqkacirco")
    public suspend fun indexSettings(argument: suspend SearchIndexSchemaIndexSettingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SearchIndexSchemaIndexSettingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.indexSettings = mapped
    }

    /**
     * @param values The settings of the search index, including routingFields. See `index_setting` below.
     */
    @JvmName("tdceabekbogmcvwy")
    public suspend fun indexSettings(vararg values: SearchIndexSchemaIndexSettingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.indexSettings = mapped
    }

    /**
     * @param value The presorting settings of the search index, including sorters. If no value is specified for the indexSort parameter, field values are sorted by primary key by default. See `index_sort` below.
     */
    @JvmName("nnvbnmwqjlxvnsii")
    public suspend fun indexSorts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.indexSorts = mapped
    }

    /**
     * @param argument The presorting settings of the search index, including sorters. If no value is specified for the indexSort parameter, field values are sorted by primary key by default. See `index_sort` below.
     */
    @JvmName("ghrhpehimjhrspua")
    public suspend fun indexSorts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SearchIndexSchemaIndexSortArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.indexSorts = mapped
    }

    /**
     * @param argument The presorting settings of the search index, including sorters. If no value is specified for the indexSort parameter, field values are sorted by primary key by default. See `index_sort` below.
     */
    @JvmName("kqoyipixyubtlblg")
    public suspend fun indexSorts(vararg argument: suspend SearchIndexSchemaIndexSortArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SearchIndexSchemaIndexSortArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.indexSorts = mapped
    }

    /**
     * @param argument The presorting settings of the search index, including sorters. If no value is specified for the indexSort parameter, field values are sorted by primary key by default. See `index_sort` below.
     */
    @JvmName("lmeqspiqofmybikk")
    public suspend fun indexSorts(argument: suspend SearchIndexSchemaIndexSortArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SearchIndexSchemaIndexSortArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.indexSorts = mapped
    }

    /**
     * @param values The presorting settings of the search index, including sorters. If no value is specified for the indexSort parameter, field values are sorted by primary key by default. See `index_sort` below.
     */
    @JvmName("ckcaacvbitebkgxg")
    public suspend fun indexSorts(vararg values: SearchIndexSchemaIndexSortArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.indexSorts = mapped
    }

    internal fun build(): SearchIndexSchemaArgs = SearchIndexSchemaArgs(
        fieldSchemas = fieldSchemas ?: throw PulumiNullFieldException("fieldSchemas"),
        indexSettings = indexSettings,
        indexSorts = indexSorts,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy