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

com.pulumi.cloudflare.kotlin.outputs.RulesetRuleActionParametersEdgeTtlStatusCodeTtl.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.outputs

import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property statusCode Status code for which the edge TTL is applied.
 * @property statusCodeRanges Status code range for which the edge TTL is applied.
 * @property value Status code edge TTL value.
 */
public data class RulesetRuleActionParametersEdgeTtlStatusCodeTtl(
    public val statusCode: Int? = null,
    public val statusCodeRanges: List? =
        null,
    public val `value`: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.RulesetRuleActionParametersEdgeTtlStatusCodeTtl): RulesetRuleActionParametersEdgeTtlStatusCodeTtl =
            RulesetRuleActionParametersEdgeTtlStatusCodeTtl(
                statusCode = javaType.statusCode().map({ args0 -> args0 }).orElse(null),
                statusCodeRanges = javaType.statusCodeRanges().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.cloudflare.kotlin.outputs.RulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRange.Companion.toKotlin(args0)
                    })
                }),
                `value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy