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

com.pulumi.azure.dataprotection.kotlin.inputs.BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs.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.dataprotection.kotlin.inputs

import com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
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 resource to be created.
 * @property daysOfWeeks Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource 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 resource to be created.
 * @property scheduledBackupTimes Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new resource to be created.
 * @property weeksOfMonths Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new resource to be created.
 */
public data class BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs(
    public val absoluteCriteria: 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.BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs =
        com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs.builder()
            .absoluteCriteria(absoluteCriteria?.applyValue({ 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 [BackupPolicyKubernetesClusterRetentionRuleCriteriaArgs].
 */
@PulumiTagMarker
public class BackupPolicyKubernetesClusterRetentionRuleCriteriaArgsBuilder internal constructor() {
    private var absoluteCriteria: 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 resource to be created.
     */
    @JvmName("xvobfqjnxecsocwu")
    public suspend fun absoluteCriteria(`value`: Output) {
        this.absoluteCriteria = value
    }

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

    @JvmName("uwwgibepkghwkdta")
    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 resource to be created.
     */
    @JvmName("snijosxbwfdhseun")
    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 resource to be created.
     */
    @JvmName("ebptyfholasobjik")
    public suspend fun monthsOfYears(`value`: Output>) {
        this.monthsOfYears = value
    }

    @JvmName("vvixcmmbmwjalyqg")
    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 resource to be created.
     */
    @JvmName("ixnjrrecldggrela")
    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 resource to be created.
     */
    @JvmName("beosllcfyohefybp")
    public suspend fun scheduledBackupTimes(`value`: Output>) {
        this.scheduledBackupTimes = value
    }

    @JvmName("nfdelvvgsqsmyrkc")
    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 resource to be created.
     */
    @JvmName("oekhqtmslomtxtau")
    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 resource to be created.
     */
    @JvmName("fwdchxobfsuyskbi")
    public suspend fun weeksOfMonths(`value`: Output>) {
        this.weeksOfMonths = value
    }

    @JvmName("bloetcclcptgiyhf")
    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 resource to be created.
     */
    @JvmName("lcqukvqujageeyvs")
    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 resource to be created.
     */
    @JvmName("bvgvbcranbegwngb")
    public suspend fun absoluteCriteria(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.absoluteCriteria = mapped
    }

    /**
     * @param value Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource to be created.
     */
    @JvmName("tigmrbjqnfbqdjky")
    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 resource to be created.
     */
    @JvmName("hymxxkoieycgclkx")
    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 resource to be created.
     */
    @JvmName("urovdcibvtjcxmnj")
    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 resource to be created.
     */
    @JvmName("pnvlpybagrxyrqmx")
    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 resource to be created.
     */
    @JvmName("jdmfprlosvxifdjj")
    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 resource to be created.
     */
    @JvmName("lqaibfacuukowccy")
    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 resource to be created.
     */
    @JvmName("efovlrvikyayjrul")
    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 resource to be created.
     */
    @JvmName("snkssmfvvgwcunos")
    public suspend fun weeksOfMonths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weeksOfMonths = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy