com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgs.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.RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property from From status code.
* @property to To status code.
*/
public data class RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgs(
public val from: Output? = null,
public val to: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgs =
com.pulumi.cloudflare.inputs.RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgs.builder()
.from(from?.applyValue({ args0 -> args0 }))
.to(to?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgs].
*/
@PulumiTagMarker
public class RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgsBuilder internal constructor() {
private var from: Output? = null
private var to: Output? = null
/**
* @param value From status code.
*/
@JvmName("boxjebgmhiqvjkuq")
public suspend fun from(`value`: Output) {
this.from = value
}
/**
* @param value To status code.
*/
@JvmName("loeuiowxlbddcpvi")
public suspend fun to(`value`: Output) {
this.to = value
}
/**
* @param value From status code.
*/
@JvmName("flmhdbxhgmxueigx")
public suspend fun from(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.from = mapped
}
/**
* @param value To status code.
*/
@JvmName("ofpuuagqokoyydgx")
public suspend fun to(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.to = mapped
}
internal fun build(): RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgs =
RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRangeArgs(
from = from,
to = to,
)
}