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

com.pulumi.cloudflare.kotlin.inputs.PageRuleActionsCacheTtlByStatusArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.PageRuleActionsCacheTtlByStatusArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property codes A HTTP code (e.g. `404`) or range of codes (e.g. `400-499`)
 * @property ttl Duration a resource lives in the Cloudflare cache.
 * - positive number - cache for specified duration in seconds
 */
public data class PageRuleActionsCacheTtlByStatusArgs(
    public val codes: Output,
    public val ttl: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.PageRuleActionsCacheTtlByStatusArgs =
        com.pulumi.cloudflare.inputs.PageRuleActionsCacheTtlByStatusArgs.builder()
            .codes(codes.applyValue({ args0 -> args0 }))
            .ttl(ttl.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PageRuleActionsCacheTtlByStatusArgs].
 */
@PulumiTagMarker
public class PageRuleActionsCacheTtlByStatusArgsBuilder internal constructor() {
    private var codes: Output? = null

    private var ttl: Output? = null

    /**
     * @param value A HTTP code (e.g. `404`) or range of codes (e.g. `400-499`)
     */
    @JvmName("orxmytfyjysenmjq")
    public suspend fun codes(`value`: Output) {
        this.codes = value
    }

    /**
     * @param value Duration a resource lives in the Cloudflare cache.
     * - positive number - cache for specified duration in seconds
     */
    @JvmName("ltfvjjaeujetblov")
    public suspend fun ttl(`value`: Output) {
        this.ttl = value
    }

    /**
     * @param value A HTTP code (e.g. `404`) or range of codes (e.g. `400-499`)
     */
    @JvmName("uoxfkrsqmynalsri")
    public suspend fun codes(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.codes = mapped
    }

    /**
     * @param value Duration a resource lives in the Cloudflare cache.
     * - positive number - cache for specified duration in seconds
     */
    @JvmName("ljpvdyagspuddsbx")
    public suspend fun ttl(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ttl = mapped
    }

    internal fun build(): PageRuleActionsCacheTtlByStatusArgs = PageRuleActionsCacheTtlByStatusArgs(
        codes = codes ?: throw PulumiNullFieldException("codes"),
        ttl = ttl ?: throw PulumiNullFieldException("ttl"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy