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

com.pulumi.azure.backup.kotlin.inputs.PolicyVMRetentionDailyArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.backup.kotlin.inputs

import com.pulumi.azure.backup.inputs.PolicyVMRetentionDailyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property count The number of daily backups to keep. Must be between `7` and `9999`.
 * > **Note:** Azure previously allows this field to be set to a minimum of 1 (day) - but for new resources/to update this value on existing Backup Policies - this value must now be at least 7 (days).
 */
public data class PolicyVMRetentionDailyArgs(
    public val count: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.backup.inputs.PolicyVMRetentionDailyArgs =
        com.pulumi.azure.backup.inputs.PolicyVMRetentionDailyArgs.builder()
            .count(count.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicyVMRetentionDailyArgs].
 */
@PulumiTagMarker
public class PolicyVMRetentionDailyArgsBuilder internal constructor() {
    private var count: Output? = null

    /**
     * @param value The number of daily backups to keep. Must be between `7` and `9999`.
     * > **Note:** Azure previously allows this field to be set to a minimum of 1 (day) - but for new resources/to update this value on existing Backup Policies - this value must now be at least 7 (days).
     */
    @JvmName("lkbivypmqyrjtiuq")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The number of daily backups to keep. Must be between `7` and `9999`.
     * > **Note:** Azure previously allows this field to be set to a minimum of 1 (day) - but for new resources/to update this value on existing Backup Policies - this value must now be at least 7 (days).
     */
    @JvmName("xkcxinnupncltnqh")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    internal fun build(): PolicyVMRetentionDailyArgs = PolicyVMRetentionDailyArgs(
        count = count ?: throw PulumiNullFieldException("count"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy