com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettings.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.sql.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property retainedBackups Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit
* is 'COUNT', we will retain this many backups.
* @property retentionUnit The unit that 'retained_backups' represents. Defaults to `COUNT`.
*/
public data class DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettings(
public val retainedBackups: Int,
public val retentionUnit: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettings): DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettings =
DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettings(
retainedBackups = javaType.retainedBackups(),
retentionUnit = javaType.retentionUnit().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy