com.pulumi.azure.backup.kotlin.outputs.PolicyVMWorkloadProtectionPolicyRetentionMonthly.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 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 PolicyVMWorkloadProtectionPolicyRetentionMonthly(
public val count: Int,
public val formatType: String,
public val monthdays: List? = null,
public val weekdays: List? = null,
public val weeks: List? = null,
) {
public companion object {
public
fun toKotlin(javaType: com.pulumi.azure.backup.outputs.PolicyVMWorkloadProtectionPolicyRetentionMonthly):
PolicyVMWorkloadProtectionPolicyRetentionMonthly =
PolicyVMWorkloadProtectionPolicyRetentionMonthly(
count = javaType.count(),
formatType = javaType.formatType(),
monthdays = javaType.monthdays().map({ args0 -> args0 }),
weekdays = javaType.weekdays().map({ args0 -> args0 }),
weeks = javaType.weeks().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy