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

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

package com.pulumi.gcp.bigtable.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigtable.inputs.TableAutomatedBackupPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property frequency How frequently automated backups should occur.
 * @property retentionPeriod How long the automated backups should be retained.
 */
public data class TableAutomatedBackupPolicyArgs(
    public val frequency: Output? = null,
    public val retentionPeriod: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigtable.inputs.TableAutomatedBackupPolicyArgs =
        com.pulumi.gcp.bigtable.inputs.TableAutomatedBackupPolicyArgs.builder()
            .frequency(frequency?.applyValue({ args0 -> args0 }))
            .retentionPeriod(retentionPeriod?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableAutomatedBackupPolicyArgs].
 */
@PulumiTagMarker
public class TableAutomatedBackupPolicyArgsBuilder internal constructor() {
    private var frequency: Output? = null

    private var retentionPeriod: Output? = null

    /**
     * @param value How frequently automated backups should occur.
     */
    @JvmName("ihloequtqbeqfsvl")
    public suspend fun frequency(`value`: Output) {
        this.frequency = value
    }

    /**
     * @param value How long the automated backups should be retained.
     */
    @JvmName("drcldwocriurdukx")
    public suspend fun retentionPeriod(`value`: Output) {
        this.retentionPeriod = value
    }

    /**
     * @param value How frequently automated backups should occur.
     */
    @JvmName("mibbjhchasyoklcp")
    public suspend fun frequency(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frequency = mapped
    }

    /**
     * @param value How long the automated backups should be retained.
     */
    @JvmName("nyggpystptqqjtfi")
    public suspend fun retentionPeriod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPeriod = mapped
    }

    internal fun build(): TableAutomatedBackupPolicyArgs = TableAutomatedBackupPolicyArgs(
        frequency = frequency,
        retentionPeriod = retentionPeriod,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy