com.pulumi.cloudflare.kotlin.outputs.RulesetRuleActionParametersEdgeTtlStatusCodeTtl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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),
)
}
}