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.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