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

com.pulumi.azure.mssql.kotlin.outputs.DatabaseShortTermRetentionPolicy.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property backupIntervalInHours The hours between each differential backup. This is only applicable to live databases but not dropped databases. Value has to be `12` or `24`. Defaults to `12` hours.
 * @property retentionDays Point In Time Restore configuration. Value has to be between `1` and `35`.
 */
public data class DatabaseShortTermRetentionPolicy(
    public val backupIntervalInHours: Int? = null,
    public val retentionDays: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.mssql.outputs.DatabaseShortTermRetentionPolicy):
            DatabaseShortTermRetentionPolicy = DatabaseShortTermRetentionPolicy(
            backupIntervalInHours = javaType.backupIntervalInHours().map({ args0 -> args0 }).orElse(null),
            retentionDays = javaType.retentionDays(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy