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.PolicyFileShareRetentionYearlyArgs.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.Boolean
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. Must be between `1` and `10`
* @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 months The months of the year to retain backups of. Must be one of `January`, `February`, `March`, `April`, `May`, `June`, `July`, `Augest`, `September`, `October`, `November` and `December`.
* @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 PolicyFileShareRetentionYearlyArgs(
public val count: Output,
public val days: Output>? = null,
public val includeLastDays: 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.PolicyFileShareRetentionYearlyArgs =
com.pulumi.azure.backup.inputs.PolicyFileShareRetentionYearlyArgs.builder()
.count(count.applyValue({ args0 -> args0 }))
.days(days?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.includeLastDays(includeLastDays?.applyValue({ 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 [PolicyFileShareRetentionYearlyArgs].
*/
@PulumiTagMarker
public class PolicyFileShareRetentionYearlyArgsBuilder internal constructor() {
private var count: Output? = null
private var days: Output>? = null
private var includeLastDays: 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. Must be between `1` and `10`
*/
@JvmName("etntwquxauqxynur")
public suspend fun count(`value`: Output) {
this.count = value
}
/**
* @param value The days of the month to retain backups of. Must be between `1` and `31`.
*/
@JvmName("xqnigkmtcpshfduh")
public suspend fun days(`value`: Output>) {
this.days = value
}
@JvmName("pwetyiacgfmrurej")
public suspend fun days(vararg values: Output) {
this.days = Output.all(values.asList())
}
/**
* @param values The days of the month to retain backups of. Must be between `1` and `31`.
*/
@JvmName("hxkkfjwyxnnwescy")
public suspend fun days(values: List