
com.pulumi.gcp.redis.kotlin.inputs.ClusterPersistenceConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.redis.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.redis.inputs.ClusterPersistenceConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property aofConfig AOF configuration. This field will be ignored if mode is not AOF.
* Structure is documented below.
* @property mode Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
* - DISABLED: Persistence (both backup and restore) is disabled for the cluster.
* - RDB: RDB based Persistence is enabled.
* - AOF: AOF based Persistence is enabled.
* Possible values are: `PERSISTENCE_MODE_UNSPECIFIED`, `DISABLED`, `RDB`, `AOF`.
* @property rdbConfig RDB configuration. This field will be ignored if mode is not RDB.
* Structure is documented below.
*/
public data class ClusterPersistenceConfigArgs(
public val aofConfig: Output? = null,
public val mode: Output? = null,
public val rdbConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.redis.inputs.ClusterPersistenceConfigArgs =
com.pulumi.gcp.redis.inputs.ClusterPersistenceConfigArgs.builder()
.aofConfig(aofConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.mode(mode?.applyValue({ args0 -> args0 }))
.rdbConfig(rdbConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ClusterPersistenceConfigArgs].
*/
@PulumiTagMarker
public class ClusterPersistenceConfigArgsBuilder internal constructor() {
private var aofConfig: Output? = null
private var mode: Output? = null
private var rdbConfig: Output? = null
/**
* @param value AOF configuration. This field will be ignored if mode is not AOF.
* Structure is documented below.
*/
@JvmName("citfcxkqvvidfunw")
public suspend fun aofConfig(`value`: Output) {
this.aofConfig = value
}
/**
* @param value Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
* - DISABLED: Persistence (both backup and restore) is disabled for the cluster.
* - RDB: RDB based Persistence is enabled.
* - AOF: AOF based Persistence is enabled.
* Possible values are: `PERSISTENCE_MODE_UNSPECIFIED`, `DISABLED`, `RDB`, `AOF`.
*/
@JvmName("lxwulwyfkhkepsri")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value RDB configuration. This field will be ignored if mode is not RDB.
* Structure is documented below.
*/
@JvmName("wihwuldjfsxxsusk")
public suspend fun rdbConfig(`value`: Output) {
this.rdbConfig = value
}
/**
* @param value AOF configuration. This field will be ignored if mode is not AOF.
* Structure is documented below.
*/
@JvmName("akpombgafruipcje")
public suspend fun aofConfig(`value`: ClusterPersistenceConfigAofConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.aofConfig = mapped
}
/**
* @param argument AOF configuration. This field will be ignored if mode is not AOF.
* Structure is documented below.
*/
@JvmName("jurcdcptroogescq")
public suspend fun aofConfig(argument: suspend ClusterPersistenceConfigAofConfigArgsBuilder.() -> Unit) {
val toBeMapped = ClusterPersistenceConfigAofConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.aofConfig = mapped
}
/**
* @param value Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
* - DISABLED: Persistence (both backup and restore) is disabled for the cluster.
* - RDB: RDB based Persistence is enabled.
* - AOF: AOF based Persistence is enabled.
* Possible values are: `PERSISTENCE_MODE_UNSPECIFIED`, `DISABLED`, `RDB`, `AOF`.
*/
@JvmName("epqrtqtvwbubvoyv")
public suspend fun mode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mode = mapped
}
/**
* @param value RDB configuration. This field will be ignored if mode is not RDB.
* Structure is documented below.
*/
@JvmName("dlxgxigupjpoqpeh")
public suspend fun rdbConfig(`value`: ClusterPersistenceConfigRdbConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rdbConfig = mapped
}
/**
* @param argument RDB configuration. This field will be ignored if mode is not RDB.
* Structure is documented below.
*/
@JvmName("xnqulmetlbryaekt")
public suspend fun rdbConfig(argument: suspend ClusterPersistenceConfigRdbConfigArgsBuilder.() -> Unit) {
val toBeMapped = ClusterPersistenceConfigRdbConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.rdbConfig = mapped
}
internal fun build(): ClusterPersistenceConfigArgs = ClusterPersistenceConfigArgs(
aofConfig = aofConfig,
mode = mode,
rdbConfig = rdbConfig,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy