Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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