com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersBrowserTtlArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersBrowserTtlArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property default Default browser TTL. This value is required when override_origin is set
* @property mode Mode of the browser TTL. Available values: `override_origin`, `respect_origin`, `bypass`
*/
public data class RulesetRuleActionParametersBrowserTtlArgs(
public val default: Output? = null,
public val mode: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersBrowserTtlArgs =
com.pulumi.cloudflare.inputs.RulesetRuleActionParametersBrowserTtlArgs.builder()
.default_(default?.applyValue({ args0 -> args0 }))
.mode(mode.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesetRuleActionParametersBrowserTtlArgs].
*/
@PulumiTagMarker
public class RulesetRuleActionParametersBrowserTtlArgsBuilder internal constructor() {
private var default: Output? = null
private var mode: Output? = null
/**
* @param value Default browser TTL. This value is required when override_origin is set
*/
@JvmName("xfrimqphsrgxkxqx")
public suspend fun default(`value`: Output) {
this.default = value
}
/**
* @param value Mode of the browser TTL. Available values: `override_origin`, `respect_origin`, `bypass`
*/
@JvmName("vcrojojacqpmcsoq")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value Default browser TTL. This value is required when override_origin is set
*/
@JvmName("wdusiqfqelplvnug")
public suspend fun default(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.default = mapped
}
/**
* @param value Mode of the browser TTL. Available values: `override_origin`, `respect_origin`, `bypass`
*/
@JvmName("njotfqcthjmlqahk")
public suspend fun mode(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mode = mapped
}
internal fun build(): RulesetRuleActionParametersBrowserTtlArgs =
RulesetRuleActionParametersBrowserTtlArgs(
default = default,
mode = mode ?: throw PulumiNullFieldException("mode"),
)
}