com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersCacheReserveArgs.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.RulesetRuleActionParametersCacheReserveArgs.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.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property eligible Determines whether Cloudflare will write the eligible resource to cache reserve.
* @property minimumFileSize The minimum file size, in bytes, eligible for storage in cache reserve. If omitted and "eligible" is true, Cloudflare will use 0 bytes by default.
*/
public data class RulesetRuleActionParametersCacheReserveArgs(
public val eligible: Output,
public val minimumFileSize: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheReserveArgs =
com.pulumi.cloudflare.inputs.RulesetRuleActionParametersCacheReserveArgs.builder()
.eligible(eligible.applyValue({ args0 -> args0 }))
.minimumFileSize(minimumFileSize?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesetRuleActionParametersCacheReserveArgs].
*/
@PulumiTagMarker
public class RulesetRuleActionParametersCacheReserveArgsBuilder internal constructor() {
private var eligible: Output? = null
private var minimumFileSize: Output? = null
/**
* @param value Determines whether Cloudflare will write the eligible resource to cache reserve.
*/
@JvmName("tordltcpnjcaicye")
public suspend fun eligible(`value`: Output) {
this.eligible = value
}
/**
* @param value The minimum file size, in bytes, eligible for storage in cache reserve. If omitted and "eligible" is true, Cloudflare will use 0 bytes by default.
*/
@JvmName("dfpldeoiwqtmmjmc")
public suspend fun minimumFileSize(`value`: Output) {
this.minimumFileSize = value
}
/**
* @param value Determines whether Cloudflare will write the eligible resource to cache reserve.
*/
@JvmName("vusgaivcfxvrgupc")
public suspend fun eligible(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eligible = mapped
}
/**
* @param value The minimum file size, in bytes, eligible for storage in cache reserve. If omitted and "eligible" is true, Cloudflare will use 0 bytes by default.
*/
@JvmName("pnifbfuasvahxxfc")
public suspend fun minimumFileSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minimumFileSize = mapped
}
internal fun build(): RulesetRuleActionParametersCacheReserveArgs =
RulesetRuleActionParametersCacheReserveArgs(
eligible = eligible ?: throw PulumiNullFieldException("eligible"),
minimumFileSize = minimumFileSize,
)
}