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

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

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

import com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionYearlyArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property count The number of yearly backups to keep. Possible values are between `1` and `99`
 * @property formatType The retention schedule format type for yearly retention policy. Possible values are `Daily` and `Weekly`.
 * @property monthdays The monthday backups to retain. Possible values are between `0` and `28`.
 * @property months The months of the year to retain backups of. Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`.
 * @property weekdays The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
 * @property weeks The weeks of the month to retain backups of. Possible values are `First`, `Second`, `Third`, `Fourth`, `Last`.
 */
public data class PolicyVMWorkloadProtectionPolicyRetentionYearlyArgs(
    public val count: Output,
    public val formatType: Output,
    public val monthdays: Output>? = null,
    public val months: Output>,
    public val weekdays: Output>? = null,
    public val weeks: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionYearlyArgs =
        com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionYearlyArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .formatType(formatType.applyValue({ args0 -> args0 }))
            .monthdays(monthdays?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .months(months.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .weekdays(weekdays?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .weeks(weeks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var formatType: Output? = null

    private var monthdays: Output>? = null

    private var months: Output>? = null

    private var weekdays: Output>? = null

    private var weeks: Output>? = null

    /**
     * @param value The number of yearly backups to keep. Possible values are between `1` and `99`
     */
    @JvmName("htwqvwgedojurwix")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The retention schedule format type for yearly retention policy. Possible values are `Daily` and `Weekly`.
     */
    @JvmName("ptdodowpdnkbbubl")
    public suspend fun formatType(`value`: Output) {
        this.formatType = value
    }

    /**
     * @param value The monthday backups to retain. Possible values are between `0` and `28`.
     */
    @JvmName("aoxwrimlhojddbla")
    public suspend fun monthdays(`value`: Output>) {
        this.monthdays = value
    }

    @JvmName("wnvogurwfkdakixb")
    public suspend fun monthdays(vararg values: Output) {
        this.monthdays = Output.all(values.asList())
    }

    /**
     * @param values The monthday backups to retain. Possible values are between `0` and `28`.
     */
    @JvmName("biyvexcohiwtwyfb")
    public suspend fun monthdays(values: List>) {
        this.monthdays = Output.all(values)
    }

    /**
     * @param value The months of the year to retain backups of. Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`.
     */
    @JvmName("berjjnjbpthrhscg")
    public suspend fun months(`value`: Output>) {
        this.months = value
    }

    @JvmName("xhnuhmquqfddwutc")
    public suspend fun months(vararg values: Output) {
        this.months = Output.all(values.asList())
    }

    /**
     * @param values The months of the year to retain backups of. Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`.
     */
    @JvmName("ouixpwkhaoxbeyvu")
    public suspend fun months(values: List>) {
        this.months = Output.all(values)
    }

    /**
     * @param value The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("dlbibfkgmjmbdikt")
    public suspend fun weekdays(`value`: Output>) {
        this.weekdays = value
    }

    @JvmName("qrwqbdifjkqgkqys")
    public suspend fun weekdays(vararg values: Output) {
        this.weekdays = Output.all(values.asList())
    }

    /**
     * @param values The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("aohppdbawwgmbkcs")
    public suspend fun weekdays(values: List>) {
        this.weekdays = Output.all(values)
    }

    /**
     * @param value The weeks of the month to retain backups of. Possible values are `First`, `Second`, `Third`, `Fourth`, `Last`.
     */
    @JvmName("cbhahmqwkqmdetbe")
    public suspend fun weeks(`value`: Output>) {
        this.weeks = value
    }

    @JvmName("jhkltukwnswvixyr")
    public suspend fun weeks(vararg values: Output) {
        this.weeks = Output.all(values.asList())
    }

    /**
     * @param values The weeks of the month to retain backups of. Possible values are `First`, `Second`, `Third`, `Fourth`, `Last`.
     */
    @JvmName("ovcuyrbjqvgqqudb")
    public suspend fun weeks(values: List>) {
        this.weeks = Output.all(values)
    }

    /**
     * @param value The number of yearly backups to keep. Possible values are between `1` and `99`
     */
    @JvmName("ivsbwyplmkceqaju")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value The retention schedule format type for yearly retention policy. Possible values are `Daily` and `Weekly`.
     */
    @JvmName("amqgjvbmdqbktrlt")
    public suspend fun formatType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.formatType = mapped
    }

    /**
     * @param value The monthday backups to retain. Possible values are between `0` and `28`.
     */
    @JvmName("lhjurjcrdkyjqydr")
    public suspend fun monthdays(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monthdays = mapped
    }

    /**
     * @param values The monthday backups to retain. Possible values are between `0` and `28`.
     */
    @JvmName("jcuxiexoyugvatfu")
    public suspend fun monthdays(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.monthdays = mapped
    }

    /**
     * @param value The months of the year to retain backups of. Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`.
     */
    @JvmName("pkxjeqdlwtvfjqvk")
    public suspend fun months(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.months = mapped
    }

    /**
     * @param values The months of the year to retain backups of. Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`.
     */
    @JvmName("sxupdxnlojrxfqfd")
    public suspend fun months(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.months = mapped
    }

    /**
     * @param value The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("qlnwxcbyqnoahoel")
    public suspend fun weekdays(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.weekdays = mapped
    }

    /**
     * @param values The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("rlpjnxgyxmtpfxjl")
    public suspend fun weekdays(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weekdays = mapped
    }

    /**
     * @param value The weeks of the month to retain backups of. Possible values are `First`, `Second`, `Third`, `Fourth`, `Last`.
     */
    @JvmName("tsxtcvvyhlnpmfei")
    public suspend fun weeks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.weeks = mapped
    }

    /**
     * @param values The weeks of the month to retain backups of. Possible values are `First`, `Second`, `Third`, `Fourth`, `Last`.
     */
    @JvmName("geuqcuytgtndqhcp")
    public suspend fun weeks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weeks = mapped
    }

    internal fun build(): PolicyVMWorkloadProtectionPolicyRetentionYearlyArgs =
        PolicyVMWorkloadProtectionPolicyRetentionYearlyArgs(
            count = count ?: throw PulumiNullFieldException("count"),
            formatType = formatType ?: throw PulumiNullFieldException("formatType"),
            monthdays = monthdays,
            months = months ?: throw PulumiNullFieldException("months"),
            weekdays = weekdays,
            weeks = weeks,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy