![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.backup.kotlin.inputs.PolicyVMWorkloadProtectionPolicyRetentionMonthlyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
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.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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy