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

com.pulumi.cloudflare.kotlin.inputs.HyperdriveConfigCachingArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.HyperdriveConfigCachingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property disabled Disable caching for this Hyperdrive configuration.
 * @property maxAge Configure the `max_age` value of this Hyperdrive configuration.
 * @property staleWhileRevalidate Disable caching for this Hyperdrive configuration.
 */
public data class HyperdriveConfigCachingArgs(
    public val disabled: Output? = null,
    public val maxAge: Output? = null,
    public val staleWhileRevalidate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.HyperdriveConfigCachingArgs =
        com.pulumi.cloudflare.inputs.HyperdriveConfigCachingArgs.builder()
            .disabled(disabled?.applyValue({ args0 -> args0 }))
            .maxAge(maxAge?.applyValue({ args0 -> args0 }))
            .staleWhileRevalidate(staleWhileRevalidate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HyperdriveConfigCachingArgs].
 */
@PulumiTagMarker
public class HyperdriveConfigCachingArgsBuilder internal constructor() {
    private var disabled: Output? = null

    private var maxAge: Output? = null

    private var staleWhileRevalidate: Output? = null

    /**
     * @param value Disable caching for this Hyperdrive configuration.
     */
    @JvmName("exbygovyxkdcxbul")
    public suspend fun disabled(`value`: Output) {
        this.disabled = value
    }

    /**
     * @param value Configure the `max_age` value of this Hyperdrive configuration.
     */
    @JvmName("eugmdhgkommqunos")
    public suspend fun maxAge(`value`: Output) {
        this.maxAge = value
    }

    /**
     * @param value Disable caching for this Hyperdrive configuration.
     */
    @JvmName("dykktnnxolnlkppc")
    public suspend fun staleWhileRevalidate(`value`: Output) {
        this.staleWhileRevalidate = value
    }

    /**
     * @param value Disable caching for this Hyperdrive configuration.
     */
    @JvmName("thlujkcghpkahdbv")
    public suspend fun disabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disabled = mapped
    }

    /**
     * @param value Configure the `max_age` value of this Hyperdrive configuration.
     */
    @JvmName("cocjgfykvmhikfto")
    public suspend fun maxAge(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxAge = mapped
    }

    /**
     * @param value Disable caching for this Hyperdrive configuration.
     */
    @JvmName("mthbctbspdcwqxsx")
    public suspend fun staleWhileRevalidate(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.staleWhileRevalidate = mapped
    }

    internal fun build(): HyperdriveConfigCachingArgs = HyperdriveConfigCachingArgs(
        disabled = disabled,
        maxAge = maxAge,
        staleWhileRevalidate = staleWhileRevalidate,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy