com.pulumi.azure.backup.kotlin.outputs.PolicyFileShareRetentionMonthly.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.Boolean
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 `120`
* @property days The days of the month to retain backups of. Must be between `1` and `31`.
* @property includeLastDays Including the last day of the month, default to `false`.
* > **NOTE:**: Either `weekdays` and `weeks` or `days` and `include_last_days` must be specified.
* @property weekdays The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
* @property weeks The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
*/
public data class PolicyFileShareRetentionMonthly(
public val count: Int,
public val days: List? = null,
public val includeLastDays: Boolean? = null,
public val weekdays: List? = null,
public val weeks: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.backup.outputs.PolicyFileShareRetentionMonthly):
PolicyFileShareRetentionMonthly = PolicyFileShareRetentionMonthly(
count = javaType.count(),
days = javaType.days().map({ args0 -> args0 }),
includeLastDays = javaType.includeLastDays().map({ args0 -> args0 }).orElse(null),
weekdays = javaType.weekdays().map({ args0 -> args0 }),
weeks = javaType.weeks().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy