com.pulumi.azure.appservice.kotlin.inputs.WindowsFunctionAppSlotBackupArgs.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.appservice.kotlin.inputs
import com.pulumi.azure.appservice.inputs.WindowsFunctionAppSlotBackupArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property enabled Should this backup job be enabled? Defaults to `true`.
* @property name The name which should be used for this Backup.
* @property schedule a `schedule` block as detailed below.
* @property storageAccountUrl The SAS URL to the container.
*/
public data class WindowsFunctionAppSlotBackupArgs(
public val enabled: Output? = null,
public val name: Output,
public val schedule: Output,
public val storageAccountUrl: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appservice.inputs.WindowsFunctionAppSlotBackupArgs =
com.pulumi.azure.appservice.inputs.WindowsFunctionAppSlotBackupArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.schedule(schedule.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.storageAccountUrl(storageAccountUrl.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WindowsFunctionAppSlotBackupArgs].
*/
@PulumiTagMarker
public class WindowsFunctionAppSlotBackupArgsBuilder internal constructor() {
private var enabled: Output? = null
private var name: Output? = null
private var schedule: Output? = null
private var storageAccountUrl: Output? = null
/**
* @param value Should this backup job be enabled? Defaults to `true`.
*/
@JvmName("ecqrnmabwcqrvsbb")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The name which should be used for this Backup.
*/
@JvmName("akapbowarhxybcon")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value a `schedule` block as detailed below.
*/
@JvmName("rkmuwrkosyrkkffy")
public suspend fun schedule(`value`: Output) {
this.schedule = value
}
/**
* @param value The SAS URL to the container.
*/
@JvmName("bkinvxmmpmqxrpas")
public suspend fun storageAccountUrl(`value`: Output) {
this.storageAccountUrl = value
}
/**
* @param value Should this backup job be enabled? Defaults to `true`.
*/
@JvmName("qiegmdlfuqjbonep")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The name which should be used for this Backup.
*/
@JvmName("nthjltmujgbbgjdv")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value a `schedule` block as detailed below.
*/
@JvmName("cwlddkjbaysvdsat")
public suspend fun schedule(`value`: WindowsFunctionAppSlotBackupScheduleArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.schedule = mapped
}
/**
* @param argument a `schedule` block as detailed below.
*/
@JvmName("yxkkokmemgnvscew")
public suspend
fun schedule(argument: suspend WindowsFunctionAppSlotBackupScheduleArgsBuilder.() -> Unit) {
val toBeMapped = WindowsFunctionAppSlotBackupScheduleArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.schedule = mapped
}
/**
* @param value The SAS URL to the container.
*/
@JvmName("dimmpdnxqtaknynh")
public suspend fun storageAccountUrl(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.storageAccountUrl = mapped
}
internal fun build(): WindowsFunctionAppSlotBackupArgs = WindowsFunctionAppSlotBackupArgs(
enabled = enabled,
name = name ?: throw PulumiNullFieldException("name"),
schedule = schedule ?: throw PulumiNullFieldException("schedule"),
storageAccountUrl = storageAccountUrl ?: throw PulumiNullFieldException("storageAccountUrl"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy