
com.pulumi.azure.cdn.kotlin.inputs.EndpointGlobalDeliveryRuleCacheExpirationActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cdn.kotlin.inputs
import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleCacheExpirationActionArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property behavior The behavior of the cache. Valid values are `BypassCache`, `Override` and `SetIfMissing`.
* @property duration Duration of the cache. Only allowed when `behavior` is set to `Override` or `SetIfMissing`. Format: `[d.]hh:mm:ss`
*/
public data class EndpointGlobalDeliveryRuleCacheExpirationActionArgs(
public val behavior: Output,
public val duration: Output? = null,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleCacheExpirationActionArgs =
com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleCacheExpirationActionArgs.builder()
.behavior(behavior.applyValue({ args0 -> args0 }))
.duration(duration?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EndpointGlobalDeliveryRuleCacheExpirationActionArgs].
*/
@PulumiTagMarker
public class EndpointGlobalDeliveryRuleCacheExpirationActionArgsBuilder internal constructor() {
private var behavior: Output? = null
private var duration: Output? = null
/**
* @param value The behavior of the cache. Valid values are `BypassCache`, `Override` and `SetIfMissing`.
*/
@JvmName("cweojtkhhkwemsxg")
public suspend fun behavior(`value`: Output) {
this.behavior = value
}
/**
* @param value Duration of the cache. Only allowed when `behavior` is set to `Override` or `SetIfMissing`. Format: `[d.]hh:mm:ss`
*/
@JvmName("kgflvmfrjrohnveq")
public suspend fun duration(`value`: Output) {
this.duration = value
}
/**
* @param value The behavior of the cache. Valid values are `BypassCache`, `Override` and `SetIfMissing`.
*/
@JvmName("nfblcacliwgfvtvt")
public suspend fun behavior(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.behavior = mapped
}
/**
* @param value Duration of the cache. Only allowed when `behavior` is set to `Override` or `SetIfMissing`. Format: `[d.]hh:mm:ss`
*/
@JvmName("xhbvhmqpllrihyws")
public suspend fun duration(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.duration = mapped
}
internal fun build(): EndpointGlobalDeliveryRuleCacheExpirationActionArgs =
EndpointGlobalDeliveryRuleCacheExpirationActionArgs(
behavior = behavior ?: throw PulumiNullFieldException("behavior"),
duration = duration,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy