
com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyPostgresqlRetentionRule.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
/**
*
* @property criteria A `criteria` block as defined below. Changing this forces a new Backup Policy PostgreSQL to be created.
* @property duration Duration after which the backup is deleted. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy PostgreSQL to be created.
* @property name The name which should be used for this retention rule. Changing this forces a new Backup Policy PostgreSQL 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 Backup Policy PostgreSQL to be created.
*/
public data class BackupPolicyPostgresqlRetentionRule(
public val criteria: BackupPolicyPostgresqlRetentionRuleCriteria,
public val duration: String,
public val name: String,
public val priority: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.dataprotection.outputs.BackupPolicyPostgresqlRetentionRule): BackupPolicyPostgresqlRetentionRule = BackupPolicyPostgresqlRetentionRule(
criteria = javaType.criteria().let({ args0 ->
com.pulumi.azure.dataprotection.kotlin.outputs.BackupPolicyPostgresqlRetentionRuleCriteria.Companion.toKotlin(args0)
}),
duration = javaType.duration(),
name = javaType.name(),
priority = javaType.priority(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy