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

com.pulumi.azure.backup.kotlin.inputs.PolicyVMWorkloadProtectionPolicyRetentionMonthlyArgs.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.PolicyVMWorkloadProtectionPolicyRetentionMonthlyArgs.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 monthly backups to keep. Must be between `1` and `1188`.
 * @property formatType The retention schedule format type for monthly retention policy. Possible values are `Daily` and `Weekly`.
 * @property monthdays The monthday backups to retain. Possible values are between `0` and `28`.
 * @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` and `Last`.
 */
public data class PolicyVMWorkloadProtectionPolicyRetentionMonthlyArgs(
    public val count: Output,
    public val formatType: Output,
    public val monthdays: Output>? = null,
    public val weekdays: Output>? = null,
    public val weeks: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionMonthlyArgs =
        com.pulumi.azure.backup.inputs.PolicyVMWorkloadProtectionPolicyRetentionMonthlyArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .formatType(formatType.applyValue({ args0 -> args0 }))
            .monthdays(monthdays?.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 [PolicyVMWorkloadProtectionPolicyRetentionMonthlyArgs].
 */
@PulumiTagMarker
public class PolicyVMWorkloadProtectionPolicyRetentionMonthlyArgsBuilder internal constructor() {
    private var count: Output? = null

    private var formatType: Output? = null

    private var monthdays: Output>? = null

    private var weekdays: Output>? = null

    private var weeks: Output>? = null

    /**
     * @param value The number of monthly backups to keep. Must be between `1` and `1188`.
     */
    @JvmName("wrchntrtkkmxudyf")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

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

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

    @JvmName("teklpkumpxwmwahr")
    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("axqqwiidxeqoivtd")
    public suspend fun monthdays(values: List>) {
        this.monthdays = Output.all(values)
    }

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

    @JvmName("fskvheracfloyphh")
    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("qehvltjreeklcbki")
    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` and `Last`.
     */
    @JvmName("ievfbixoyknlmhwy")
    public suspend fun weeks(`value`: Output>) {
        this.weeks = value
    }

    @JvmName("tnfwpjelwqjoyicl")
    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` and `Last`.
     */
    @JvmName("qgdwjxouwswrxajk")
    public suspend fun weeks(values: List>) {
        this.weeks = Output.all(values)
    }

    /**
     * @param value The number of monthly backups to keep. Must be between `1` and `1188`.
     */
    @JvmName("rlsbewnofxwrycvq")
    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 monthly retention policy. Possible values are `Daily` and `Weekly`.
     */
    @JvmName("qxigtttvvxbvklbx")
    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("kchtrkgvonejmqye")
    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("syttpjpirtdadwek")
    public suspend fun monthdays(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.monthdays = mapped
    }

    /**
     * @param value The weekday backups to retain. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
     */
    @JvmName("tanmnqqsuolmquas")
    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("hasimlxmypoqhtnt")
    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` and `Last`.
     */
    @JvmName("amnmijfttrrqjvra")
    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` and `Last`.
     */
    @JvmName("kanjnlggwkycnxmg")
    public suspend fun weeks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weeks = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy