
com.pulumi.azure.automanage.kotlin.inputs.ConfigurationBackupRetentionPolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.automanage.kotlin.inputs
import com.pulumi.azure.automanage.inputs.ConfigurationBackupRetentionPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property dailySchedule A `daily_schedule` block as defined below.
* @property retentionPolicyType The retention policy type of the backup policy. Possible value is `LongTermRetentionPolicy`. Defaults to `LongTermRetentionPolicy`.
* @property weeklySchedule A `weekly_schedule` block as defined below.
*/
public data class ConfigurationBackupRetentionPolicyArgs(
public val dailySchedule: Output? = null,
public val retentionPolicyType: Output? = null,
public val weeklySchedule: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.automanage.inputs.ConfigurationBackupRetentionPolicyArgs =
com.pulumi.azure.automanage.inputs.ConfigurationBackupRetentionPolicyArgs.builder()
.dailySchedule(dailySchedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.retentionPolicyType(retentionPolicyType?.applyValue({ args0 -> args0 }))
.weeklySchedule(
weeklySchedule?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ConfigurationBackupRetentionPolicyArgs].
*/
@PulumiTagMarker
public class ConfigurationBackupRetentionPolicyArgsBuilder internal constructor() {
private var dailySchedule: Output? = null
private var retentionPolicyType: Output? = null
private var weeklySchedule: Output? = null
/**
* @param value A `daily_schedule` block as defined below.
*/
@JvmName("vbtlvjvhvcmsjgvj")
public suspend
fun dailySchedule(`value`: Output) {
this.dailySchedule = value
}
/**
* @param value The retention policy type of the backup policy. Possible value is `LongTermRetentionPolicy`. Defaults to `LongTermRetentionPolicy`.
*/
@JvmName("jcuafhrtnqxsjyoq")
public suspend fun retentionPolicyType(`value`: Output) {
this.retentionPolicyType = value
}
/**
* @param value A `weekly_schedule` block as defined below.
*/
@JvmName("jevfykgrtsbqfilf")
public suspend
fun weeklySchedule(`value`: Output) {
this.weeklySchedule = value
}
/**
* @param value A `daily_schedule` block as defined below.
*/
@JvmName("heywondtqwfngxpb")
public suspend fun dailySchedule(`value`: ConfigurationBackupRetentionPolicyDailyScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dailySchedule = mapped
}
/**
* @param argument A `daily_schedule` block as defined below.
*/
@JvmName("frfldxavstceftmc")
public suspend
fun dailySchedule(argument: suspend ConfigurationBackupRetentionPolicyDailyScheduleArgsBuilder.() -> Unit) {
val toBeMapped = ConfigurationBackupRetentionPolicyDailyScheduleArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.dailySchedule = mapped
}
/**
* @param value The retention policy type of the backup policy. Possible value is `LongTermRetentionPolicy`. Defaults to `LongTermRetentionPolicy`.
*/
@JvmName("jfhyilglytbiwtvl")
public suspend fun retentionPolicyType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.retentionPolicyType = mapped
}
/**
* @param value A `weekly_schedule` block as defined below.
*/
@JvmName("ohvwmqvpjedvlikh")
public suspend
fun weeklySchedule(`value`: ConfigurationBackupRetentionPolicyWeeklyScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.weeklySchedule = mapped
}
/**
* @param argument A `weekly_schedule` block as defined below.
*/
@JvmName("seofejkhelyuavdh")
public suspend
fun weeklySchedule(argument: suspend ConfigurationBackupRetentionPolicyWeeklyScheduleArgsBuilder.() -> Unit) {
val toBeMapped = ConfigurationBackupRetentionPolicyWeeklyScheduleArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.weeklySchedule = mapped
}
internal fun build(): ConfigurationBackupRetentionPolicyArgs =
ConfigurationBackupRetentionPolicyArgs(
dailySchedule = dailySchedule,
retentionPolicyType = retentionPolicyType,
weeklySchedule = weeklySchedule,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy