![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.documentdb.kotlin.inputs.IndexesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.documentdb.kotlin.inputs
import com.pulumi.azurenative.documentdb.inputs.IndexesArgs.builder
import com.pulumi.azurenative.documentdb.kotlin.enums.DataType
import com.pulumi.azurenative.documentdb.kotlin.enums.IndexKind
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The indexes for the path.
* @property dataType The datatype for which the indexing behavior is applied to.
* @property kind Indicates the type of index.
* @property precision The precision of the index. -1 is maximum precision.
*/
public data class IndexesArgs(
public val dataType: Output>? = null,
public val kind: Output>? = null,
public val precision: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.documentdb.inputs.IndexesArgs =
com.pulumi.azurenative.documentdb.inputs.IndexesArgs.builder()
.dataType(
dataType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.kind(
kind?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.precision(precision?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IndexesArgs].
*/
@PulumiTagMarker
public class IndexesArgsBuilder internal constructor() {
private var dataType: Output>? = null
private var kind: Output>? = null
private var precision: Output? = null
/**
* @param value The datatype for which the indexing behavior is applied to.
*/
@JvmName("evudtuaptjqnrwft")
public suspend fun dataType(`value`: Output>) {
this.dataType = value
}
/**
* @param value Indicates the type of index.
*/
@JvmName("jdmuosubwwnhcyef")
public suspend fun kind(`value`: Output>) {
this.kind = value
}
/**
* @param value The precision of the index. -1 is maximum precision.
*/
@JvmName("fwwekobtipskgkoe")
public suspend fun precision(`value`: Output) {
this.precision = value
}
/**
* @param value The datatype for which the indexing behavior is applied to.
*/
@JvmName("mmxqgerpqptqrtmf")
public suspend fun dataType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataType = mapped
}
/**
* @param value The datatype for which the indexing behavior is applied to.
*/
@JvmName("xqlnnrpqagibsqgp")
public fun dataType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dataType = mapped
}
/**
* @param value The datatype for which the indexing behavior is applied to.
*/
@JvmName("pefkdlvitdramnjn")
public fun dataType(`value`: DataType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dataType = mapped
}
/**
* @param value Indicates the type of index.
*/
@JvmName("poubueyqvevhxhuj")
public suspend fun kind(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value Indicates the type of index.
*/
@JvmName("blgmaocwibeuytmk")
public fun kind(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value Indicates the type of index.
*/
@JvmName("vausaylfhjixntno")
public fun kind(`value`: IndexKind) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value The precision of the index. -1 is maximum precision.
*/
@JvmName("qvtlvoyxtbitmycr")
public suspend fun precision(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.precision = mapped
}
internal fun build(): IndexesArgs = IndexesArgs(
dataType = dataType,
kind = kind,
precision = precision,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy