![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicyRetentionYearly.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 PolicyVMWorkloadProtectionPolicyRetentionYearly(
public val count: Int,
public val formatType: String,
public val monthdays: List? = null,
public val months: List,
public val weekdays: List? = null,
public val weeks: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.backup.outputs.PolicyVMWorkloadProtectionPolicyRetentionYearly): PolicyVMWorkloadProtectionPolicyRetentionYearly =
PolicyVMWorkloadProtectionPolicyRetentionYearly(
count = javaType.count(),
formatType = javaType.formatType(),
monthdays = javaType.monthdays().map({ args0 -> args0 }),
months = javaType.months().map({ args0 -> args0 }),
weekdays = javaType.weekdays().map({ args0 -> args0 }),
weeks = javaType.weeks().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy