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

com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyPostgresqlFlexibleServerRetentionRule.kt Maven / Gradle / Ivy

@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 Specifies the name of the 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 BackupPolicyPostgresqlFlexibleServerRetentionRule(
    public val criteria: BackupPolicyPostgresqlFlexibleServerRetentionRuleCriteria,
    public val lifeCycles: List,
    public val name: String,
    public val priority: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.dataprotection.outputs.BackupPolicyPostgresqlFlexibleServerRetentionRule): BackupPolicyPostgresqlFlexibleServerRetentionRule =
            BackupPolicyPostgresqlFlexibleServerRetentionRule(
                criteria = javaType.criteria().let({ args0 ->
                    com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyPostgresqlFlexibleServerRetentionRuleCriteria.Companion.toKotlin(args0)
                }),
                lifeCycles = javaType.lifeCycles().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyPostgresqlFlexibleServerRetentionRuleLifeCycle.Companion.toKotlin(args0)
                    })
                }),
                name = javaType.name(),
                priority = javaType.priority(),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy