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

com.pulumi.gcp.sql.kotlin.inputs.DatabaseInstanceSettingsDataCacheConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.sql.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsDataCacheConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property dataCacheEnabled Whether data cache is enabled for the instance. Defaults to `false`. Can be used with MYSQL and PostgreSQL only.
 */
public data class DatabaseInstanceSettingsDataCacheConfigArgs(
    public val dataCacheEnabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsDataCacheConfigArgs =
        com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsDataCacheConfigArgs.builder()
            .dataCacheEnabled(dataCacheEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatabaseInstanceSettingsDataCacheConfigArgs].
 */
@PulumiTagMarker
public class DatabaseInstanceSettingsDataCacheConfigArgsBuilder internal constructor() {
    private var dataCacheEnabled: Output? = null

    /**
     * @param value Whether data cache is enabled for the instance. Defaults to `false`. Can be used with MYSQL and PostgreSQL only.
     */
    @JvmName("joovfymtyxeohkve")
    public suspend fun dataCacheEnabled(`value`: Output) {
        this.dataCacheEnabled = value
    }

    /**
     * @param value Whether data cache is enabled for the instance. Defaults to `false`. Can be used with MYSQL and PostgreSQL only.
     */
    @JvmName("yqwxurxnywtttebm")
    public suspend fun dataCacheEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataCacheEnabled = mapped
    }

    internal fun build(): DatabaseInstanceSettingsDataCacheConfigArgs =
        DatabaseInstanceSettingsDataCacheConfigArgs(
            dataCacheEnabled = dataCacheEnabled,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy