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

com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettings.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: 8.12.0.0
Show newest version
@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