All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appservice.kotlin.inputs.LinuxWebAppSlotBackupArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.LinuxWebAppSlotBackupArgs.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 An `schedule` block as defined below.
 * @property storageAccountUrl The SAS URL to the container.
 */
public data class LinuxWebAppSlotBackupArgs(
    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.LinuxWebAppSlotBackupArgs =
        com.pulumi.azure.appservice.inputs.LinuxWebAppSlotBackupArgs.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 [LinuxWebAppSlotBackupArgs].
 */
@PulumiTagMarker
public class LinuxWebAppSlotBackupArgsBuilder 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("cwucacgnngpmlljv")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The name which should be used for this Backup.
     */
    @JvmName("iwrmfxxvoinynanl")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value An `schedule` block as defined below.
     */
    @JvmName("enlswmpauuceqtdc")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value The SAS URL to the container.
     */
    @JvmName("hwvlrmtgcqceihdn")
    public suspend fun storageAccountUrl(`value`: Output) {
        this.storageAccountUrl = value
    }

    /**
     * @param value Should this backup job be enabled? Defaults to `true`.
     */
    @JvmName("cmamvobldkjpxtox")
    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("gcdxrittndtujwnx")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value An `schedule` block as defined below.
     */
    @JvmName("domqadqjtlirpean")
    public suspend fun schedule(`value`: LinuxWebAppSlotBackupScheduleArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument An `schedule` block as defined below.
     */
    @JvmName("nqtlgdakoxbtrvfi")
    public suspend
    fun schedule(argument: suspend LinuxWebAppSlotBackupScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = LinuxWebAppSlotBackupScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    /**
     * @param value The SAS URL to the container.
     */
    @JvmName("bgrfulhtpolvdjhj")
    public suspend fun storageAccountUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageAccountUrl = mapped
    }

    internal fun build(): LinuxWebAppSlotBackupArgs = LinuxWebAppSlotBackupArgs(
        enabled = enabled,
        name = name ?: throw PulumiNullFieldException("name"),
        schedule = schedule ?: throw PulumiNullFieldException("schedule"),
        storageAccountUrl = storageAccountUrl ?: throw PulumiNullFieldException("storageAccountUrl"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy