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

com.pulumi.cloudflare.kotlin.outputs.GetRulesetsRulesetRuleActionParametersEdgeTtlStatusCodeTtl.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. Conflicts with "status_code_range".
 * @property statusCodeRanges Status code range for which the edge TTL is applied. Conflicts with "status_code".
 * @property value Status code edge TTL value.
 */
public data class GetRulesetsRulesetRuleActionParametersEdgeTtlStatusCodeTtl(
    public val statusCode: Int? = null,
    public val statusCodeRanges: List? = null,
    public val `value`: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.GetRulesetsRulesetRuleActionParametersEdgeTtlStatusCodeTtl): GetRulesetsRulesetRuleActionParametersEdgeTtlStatusCodeTtl =
            GetRulesetsRulesetRuleActionParametersEdgeTtlStatusCodeTtl(
                statusCode = javaType.statusCode().map({ args0 -> args0 }).orElse(null),
                statusCodeRanges = javaType.statusCodeRanges().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.cloudflare.kotlin.outputs.GetRulesetsRulesetRuleActionParametersEdgeTtlStatusCodeTtlStatusCodeRange.Companion.toKotlin(args0)
                    })
                }),
                `value` = javaType.`value`(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy