![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.cache.kotlin.inputs.ModuleArgs.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.cache.kotlin.inputs
import com.pulumi.azurenative.cache.inputs.ModuleArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Specifies configuration of a redis module
* @property args Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
* @property name The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
*/
public data class ModuleArgs(
public val args: Output? = null,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.cache.inputs.ModuleArgs =
com.pulumi.azurenative.cache.inputs.ModuleArgs.builder()
.args(args?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModuleArgs].
*/
@PulumiTagMarker
public class ModuleArgsBuilder internal constructor() {
private var args: Output? = null
private var name: Output? = null
/**
* @param value Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
*/
@JvmName("nwmldwlbxktjnwbf")
public suspend fun args(`value`: Output) {
this.args = value
}
/**
* @param value The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
*/
@JvmName("swsiilymwituwxdp")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
*/
@JvmName("prhhyhfbmwsjqbvv")
public suspend fun args(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.args = mapped
}
/**
* @param value The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
*/
@JvmName("pmflxmyhwajnshqt")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ModuleArgs = ModuleArgs(
args = args,
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy