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

com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyKubernetesClusterRetentionRule.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.dataprotection.kotlin.outputs

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

/**
 *
 * @property criteria A `criteria` block as defined below. Changing this forces a new resource to be created.
 * @property lifeCycles A `life_cycle` block as defined below. Changing this forces a new resource to be created.
 * @property name The name which should be used for this retention rule. Changing this forces a new resource to be created.
 * @property priority Specifies the priority of the rule. The priority number must be unique for each rule. The lower the priority number, the higher the priority of the rule. Changing this forces a new resource to be created.
 */
public data class BackupPolicyKubernetesClusterRetentionRule(
    public val criteria: BackupPolicyKubernetesClusterRetentionRuleCriteria,
    public val lifeCycles: List,
    public val name: String,
    public val priority: Int,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.dataprotection.outputs.BackupPolicyKubernetesClusterRetentionRule):
            BackupPolicyKubernetesClusterRetentionRule = BackupPolicyKubernetesClusterRetentionRule(
            criteria = javaType.criteria().let({ args0 ->
                com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyKubernetesClusterRetentionRuleCriteria.Companion.toKotlin(args0)
            }),
            lifeCycles = javaType.lifeCycles().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyKubernetesClusterRetentionRuleLifeCycle.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            priority = javaType.priority(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy