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

com.pulumi.azure.cosmosdb.kotlin.inputs.SqlContainerIndexingPolicyCompositeIndexArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.cosmosdb.kotlin.inputs

import com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicyCompositeIndexArgs.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 indices One or more `index` blocks as defined below.
 */
public data class SqlContainerIndexingPolicyCompositeIndexArgs(
    public val indices: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicyCompositeIndexArgs =
        com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicyCompositeIndexArgs.builder()
            .indices(
                indices.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value One or more `index` blocks as defined below.
     */
    @JvmName("uorimvtihvmvvbxw")
    public suspend fun indices(`value`: Output>) {
        this.indices = value
    }

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

    /**
     * @param values One or more `index` blocks as defined below.
     */
    @JvmName("pywbymcklhehifgr")
    public suspend fun indices(values: List>) {
        this.indices = Output.all(values)
    }

    /**
     * @param value One or more `index` blocks as defined below.
     */
    @JvmName("gbhcmlmxsdjjfbfe")
    public suspend fun indices(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.indices = mapped
    }

    /**
     * @param argument One or more `index` blocks as defined below.
     */
    @JvmName("ejmnewcbrgcjjvet")
    public suspend fun indices(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SqlContainerIndexingPolicyCompositeIndexIndexArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.indices = mapped
    }

    /**
     * @param argument One or more `index` blocks as defined below.
     */
    @JvmName("gclesgcrleqvfdgd")
    public suspend fun indices(vararg argument: suspend SqlContainerIndexingPolicyCompositeIndexIndexArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SqlContainerIndexingPolicyCompositeIndexIndexArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.indices = mapped
    }

    /**
     * @param argument One or more `index` blocks as defined below.
     */
    @JvmName("xnglqdifsuefdekj")
    public suspend fun indices(argument: suspend SqlContainerIndexingPolicyCompositeIndexIndexArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SqlContainerIndexingPolicyCompositeIndexIndexArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.indices = mapped
    }

    /**
     * @param values One or more `index` blocks as defined below.
     */
    @JvmName("cnadkmdbaveuyfei")
    public suspend fun indices(vararg values: SqlContainerIndexingPolicyCompositeIndexIndexArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.indices = mapped
    }

    internal fun build(): SqlContainerIndexingPolicyCompositeIndexArgs =
        SqlContainerIndexingPolicyCompositeIndexArgs(
            indices = indices ?: throw PulumiNullFieldException("indices"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy