com.pulumi.gcp.compute.kotlin.inputs.RegionBackendServiceCdnPolicyNegativeCachingPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionBackendServiceCdnPolicyNegativeCachingPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property code The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 308, 404, 405, 410, 421, 451 and 501
* can be specified as values, and you cannot specify a status code more than once.
* @property ttl The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s
* (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
*/
public data class RegionBackendServiceCdnPolicyNegativeCachingPolicyArgs(
public val code: Output? = null,
public val ttl: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionBackendServiceCdnPolicyNegativeCachingPolicyArgs =
com.pulumi.gcp.compute.inputs.RegionBackendServiceCdnPolicyNegativeCachingPolicyArgs.builder()
.code(code?.applyValue({ args0 -> args0 }))
.ttl(ttl?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionBackendServiceCdnPolicyNegativeCachingPolicyArgs].
*/
@PulumiTagMarker
public class RegionBackendServiceCdnPolicyNegativeCachingPolicyArgsBuilder internal constructor() {
private var code: Output? = null
private var ttl: Output? = null
/**
* @param value The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 308, 404, 405, 410, 421, 451 and 501
* can be specified as values, and you cannot specify a status code more than once.
*/
@JvmName("cjynijolggmdrkwi")
public suspend fun code(`value`: Output) {
this.code = value
}
/**
* @param value The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s
* (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
*/
@JvmName("arqxyyapmfurdxvj")
public suspend fun ttl(`value`: Output) {
this.ttl = value
}
/**
* @param value The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 308, 404, 405, 410, 421, 451 and 501
* can be specified as values, and you cannot specify a status code more than once.
*/
@JvmName("dgftgbquoiodesyq")
public suspend fun code(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.code = mapped
}
/**
* @param value The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s
* (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
*/
@JvmName("dblbwapasjhglnou")
public suspend fun ttl(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ttl = mapped
}
internal fun build(): RegionBackendServiceCdnPolicyNegativeCachingPolicyArgs =
RegionBackendServiceCdnPolicyNegativeCachingPolicyArgs(
code = code,
ttl = ttl,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy