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

com.pulumi.azure.dataprotection.kotlin.inputs.BackupPolicyBlobStorageRetentionRuleCriteriaArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.dataprotection.kotlin.inputs

import com.pulumi.azure.dataprotection.inputs.BackupPolicyBlobStorageRetentionRuleCriteriaArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property absoluteCriteria Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new Backup Policy Blob Storage to be created.
 * @property daysOfMonths Must be between `0` and `28`. `0` for last day within the month. Changing this forces a new Backup Policy Blob Storage to be created.
 * @property daysOfWeeks Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new Backup Policy Blob Storage to be created.
 * @property monthsOfYears Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new Backup Policy Blob Storage to be created.
 * @property scheduledBackupTimes Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new Backup Policy Blob Storage to be created.
 * @property weeksOfMonths Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new Backup Policy Blob Storage to be created.
 */
public data class BackupPolicyBlobStorageRetentionRuleCriteriaArgs(
    public val absoluteCriteria: Output? = null,
    public val daysOfMonths: Output>? = null,
    public val daysOfWeeks: Output>? = null,
    public val monthsOfYears: Output>? = null,
    public val scheduledBackupTimes: Output>? = null,
    public val weeksOfMonths: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.dataprotection.inputs.BackupPolicyBlobStorageRetentionRuleCriteriaArgs =
        com.pulumi.azure.dataprotection.inputs.BackupPolicyBlobStorageRetentionRuleCriteriaArgs.builder()
            .absoluteCriteria(absoluteCriteria?.applyValue({ args0 -> args0 }))
            .daysOfMonths(daysOfMonths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .daysOfWeeks(daysOfWeeks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .monthsOfYears(monthsOfYears?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .scheduledBackupTimes(scheduledBackupTimes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .weeksOfMonths(weeksOfMonths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [BackupPolicyBlobStorageRetentionRuleCriteriaArgs].
 */
@PulumiTagMarker
public class BackupPolicyBlobStorageRetentionRuleCriteriaArgsBuilder internal constructor() {
    private var absoluteCriteria: Output? = null

    private var daysOfMonths: Output>? = null

    private var daysOfWeeks: Output>? = null

    private var monthsOfYears: Output>? = null

    private var scheduledBackupTimes: Output>? = null

    private var weeksOfMonths: Output>? = null

    /**
     * @param value Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("clxhtbijstjitfyy")
    public suspend fun absoluteCriteria(`value`: Output) {
        this.absoluteCriteria = value
    }

    /**
     * @param value Must be between `0` and `28`. `0` for last day within the month. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("krkkudbovcvtxwjn")
    public suspend fun daysOfMonths(`value`: Output>) {
        this.daysOfMonths = value
    }

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

    /**
     * @param values Must be between `0` and `28`. `0` for last day within the month. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("pegwjmxgegwrfhbr")
    public suspend fun daysOfMonths(values: List>) {
        this.daysOfMonths = Output.all(values)
    }

    /**
     * @param value Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("vkymxdmovcqxssxn")
    public suspend fun daysOfWeeks(`value`: Output>) {
        this.daysOfWeeks = value
    }

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

    /**
     * @param values Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("viinbyqydaemtnpu")
    public suspend fun daysOfWeeks(values: List>) {
        this.daysOfWeeks = Output.all(values)
    }

    /**
     * @param value Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("rtdnegqrmnkyfbkp")
    public suspend fun monthsOfYears(`value`: Output>) {
        this.monthsOfYears = value
    }

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

    /**
     * @param values Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("portijckcnpqbxot")
    public suspend fun monthsOfYears(values: List>) {
        this.monthsOfYears = Output.all(values)
    }

    /**
     * @param value Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("gsxwkiuehowshufj")
    public suspend fun scheduledBackupTimes(`value`: Output>) {
        this.scheduledBackupTimes = value
    }

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

    /**
     * @param values Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("rnnmplfrttpqupex")
    public suspend fun scheduledBackupTimes(values: List>) {
        this.scheduledBackupTimes = Output.all(values)
    }

    /**
     * @param value Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("subbjubhkthnkbnm")
    public suspend fun weeksOfMonths(`value`: Output>) {
        this.weeksOfMonths = value
    }

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

    /**
     * @param values Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("hmcandxtwhpxvvag")
    public suspend fun weeksOfMonths(values: List>) {
        this.weeksOfMonths = Output.all(values)
    }

    /**
     * @param value Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("kxjtgqwfflqgsbrp")
    public suspend fun absoluteCriteria(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.absoluteCriteria = mapped
    }

    /**
     * @param value Must be between `0` and `28`. `0` for last day within the month. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("bnagpogxweyhrvto")
    public suspend fun daysOfMonths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.daysOfMonths = mapped
    }

    /**
     * @param values Must be between `0` and `28`. `0` for last day within the month. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("nkkwkylyibmjtcji")
    public suspend fun daysOfMonths(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfMonths = mapped
    }

    /**
     * @param value Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("twhoeagyjpawofgt")
    public suspend fun daysOfWeeks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.daysOfWeeks = mapped
    }

    /**
     * @param values Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("ywcjqimxvugokahl")
    public suspend fun daysOfWeeks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfWeeks = mapped
    }

    /**
     * @param value Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("simuvwrqfvqnbtar")
    public suspend fun monthsOfYears(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monthsOfYears = mapped
    }

    /**
     * @param values Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("qdljoripvwxpiivs")
    public suspend fun monthsOfYears(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.monthsOfYears = mapped
    }

    /**
     * @param value Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("mvjvcfijctrwannr")
    public suspend fun scheduledBackupTimes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scheduledBackupTimes = mapped
    }

    /**
     * @param values Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("ahsssptljvkphcac")
    public suspend fun scheduledBackupTimes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scheduledBackupTimes = mapped
    }

    /**
     * @param value Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("ytywarjpkxjfaiwo")
    public suspend fun weeksOfMonths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.weeksOfMonths = mapped
    }

    /**
     * @param values Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new Backup Policy Blob Storage to be created.
     */
    @JvmName("oorjmfpsprfqodlx")
    public suspend fun weeksOfMonths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weeksOfMonths = mapped
    }

    internal fun build(): BackupPolicyBlobStorageRetentionRuleCriteriaArgs =
        BackupPolicyBlobStorageRetentionRuleCriteriaArgs(
            absoluteCriteria = absoluteCriteria,
            daysOfMonths = daysOfMonths,
            daysOfWeeks = daysOfWeeks,
            monthsOfYears = monthsOfYears,
            scheduledBackupTimes = scheduledBackupTimes,
            weeksOfMonths = weeksOfMonths,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy