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

com.pulumi.gcp.sql.kotlin.inputs.DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.sql.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs(
    public val retainedBackups: Output,
    public val retentionUnit: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs =
        com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs.builder()
            .retainedBackups(retainedBackups.applyValue({ args0 -> args0 }))
            .retentionUnit(retentionUnit?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs].
 */
@PulumiTagMarker
public class DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgsBuilder internal constructor() {
    private var retainedBackups: Output? = null

    private var retentionUnit: Output? = null

    /**
     * @param value 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.
     */
    @JvmName("rhtcfdvyhvrrvjch")
    public suspend fun retainedBackups(`value`: Output) {
        this.retainedBackups = value
    }

    /**
     * @param value The unit that 'retained_backups' represents. Defaults to `COUNT`.
     */
    @JvmName("asbxbsmexssdiyue")
    public suspend fun retentionUnit(`value`: Output) {
        this.retentionUnit = value
    }

    /**
     * @param value 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.
     */
    @JvmName("llgeypvqtlrpdpsj")
    public suspend fun retainedBackups(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.retainedBackups = mapped
    }

    /**
     * @param value The unit that 'retained_backups' represents. Defaults to `COUNT`.
     */
    @JvmName("sdfoptqioffyhkhy")
    public suspend fun retentionUnit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionUnit = mapped
    }

    internal fun build(): DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs =
        DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs(
            retainedBackups = retainedBackups ?: throw PulumiNullFieldException("retainedBackups"),
            retentionUnit = retentionUnit,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy