![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.cdn.kotlin.inputs.EndpointGlobalDeliveryRuleCacheExpirationActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.
@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("duhncogbktvjnfbd")
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("ajhgqqshtdjlqjss")
public suspend fun duration(`value`: Output) {
this.duration = value
}
/**
* @param value The behavior of the cache. Valid values are `BypassCache`, `Override` and `SetIfMissing`.
*/
@JvmName("vpfuufqiyhpplmlf")
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("sfrvdwfqbjyydejd")
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