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

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

package com.pulumi.azure.mssql.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property immutableBackupsEnabled Specifies if the backups are immutable. Defaults to `false`.
 * @property monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`.
 * @property weekOfYear The week of year to take the yearly backup. Value has to be between `1` and `52`.
 * @property weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`.
 * @property yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`.
 */
public data class DatabaseLongTermRetentionPolicy(
    public val immutableBackupsEnabled: Boolean? = null,
    public val monthlyRetention: String? = null,
    public val weekOfYear: Int? = null,
    public val weeklyRetention: String? = null,
    public val yearlyRetention: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.mssql.outputs.DatabaseLongTermRetentionPolicy): DatabaseLongTermRetentionPolicy = DatabaseLongTermRetentionPolicy(
            immutableBackupsEnabled = javaType.immutableBackupsEnabled().map({ args0 -> args0 }).orElse(null),
            monthlyRetention = javaType.monthlyRetention().map({ args0 -> args0 }).orElse(null),
            weekOfYear = javaType.weekOfYear().map({ args0 -> args0 }).orElse(null),
            weeklyRetention = javaType.weeklyRetention().map({ args0 -> args0 }).orElse(null),
            yearlyRetention = javaType.yearlyRetention().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy