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

com.pulumi.gcp.compute.kotlin.inputs.BackendServiceCdnPolicyNegativeCachingPolicyArgs.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.BackendServiceCdnPolicyNegativeCachingPolicyArgs.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 BackendServiceCdnPolicyNegativeCachingPolicyArgs(
    public val code: Output? = null,
    public val ttl: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.BackendServiceCdnPolicyNegativeCachingPolicyArgs =
        com.pulumi.gcp.compute.inputs.BackendServiceCdnPolicyNegativeCachingPolicyArgs.builder()
            .code(code?.applyValue({ args0 -> args0 }))
            .ttl(ttl?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackendServiceCdnPolicyNegativeCachingPolicyArgs].
 */
@PulumiTagMarker
public class BackendServiceCdnPolicyNegativeCachingPolicyArgsBuilder 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("dnyyrltdtkxfvqtt")
    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("mdwoidmbwyexmdep")
    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("lvudmajlfyktsawk")
    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("qpwhihukqseilkne")
    public suspend fun ttl(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ttl = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy