All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.inputs.BackendBucketCdnPolicyNegativeCachingPolicyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.BackendBucketCdnPolicyNegativeCachingPolicyArgs.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 BackendBucketCdnPolicyNegativeCachingPolicyArgs(
    public val code: Output? = null,
    public val ttl: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.BackendBucketCdnPolicyNegativeCachingPolicyArgs =
        com.pulumi.gcp.compute.inputs.BackendBucketCdnPolicyNegativeCachingPolicyArgs.builder()
            .code(code?.applyValue({ args0 -> args0 }))
            .ttl(ttl?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackendBucketCdnPolicyNegativeCachingPolicyArgs].
 */
@PulumiTagMarker
public class BackendBucketCdnPolicyNegativeCachingPolicyArgsBuilder 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("krmldlxaikfjbtqo")
    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("sroflliojuhsjfnn")
    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("frgapkyhbtkercwq")
    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("lofdjdrourxwlbbr")
    public suspend fun ttl(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ttl = mapped
    }

    internal fun build(): BackendBucketCdnPolicyNegativeCachingPolicyArgs =
        BackendBucketCdnPolicyNegativeCachingPolicyArgs(
            code = code,
            ttl = ttl,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy