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

com.pulumi.azure.mssql.kotlin.inputs.VirtualMachineAutoBackupManualScheduleArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mssql.kotlin.inputs

import com.pulumi.azure.mssql.inputs.VirtualMachineAutoBackupManualScheduleArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property daysOfWeeks A list of days on which backup can take place. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`
 * > **NOTE:** `days_of_week` can only be specified when `manual_schedule` is set to `Weekly`
 * @property fullBackupFrequency Frequency of full backups. Valid values include `Daily` or `Weekly`.
 * @property fullBackupStartHour Start hour of a given day during which full backups can take place. Valid values are from `0` to `23`.
 * @property fullBackupWindowInHours Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between `1` and `23`.
 * @property logBackupFrequencyInMinutes Frequency of log backups, in minutes. Valid values are from `5` to `60`.
 */
public data class VirtualMachineAutoBackupManualScheduleArgs(
    public val daysOfWeeks: Output>? = null,
    public val fullBackupFrequency: Output,
    public val fullBackupStartHour: Output,
    public val fullBackupWindowInHours: Output,
    public val logBackupFrequencyInMinutes: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mssql.inputs.VirtualMachineAutoBackupManualScheduleArgs =
        com.pulumi.azure.mssql.inputs.VirtualMachineAutoBackupManualScheduleArgs.builder()
            .daysOfWeeks(daysOfWeeks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .fullBackupFrequency(fullBackupFrequency.applyValue({ args0 -> args0 }))
            .fullBackupStartHour(fullBackupStartHour.applyValue({ args0 -> args0 }))
            .fullBackupWindowInHours(fullBackupWindowInHours.applyValue({ args0 -> args0 }))
            .logBackupFrequencyInMinutes(logBackupFrequencyInMinutes.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VirtualMachineAutoBackupManualScheduleArgs].
 */
@PulumiTagMarker
public class VirtualMachineAutoBackupManualScheduleArgsBuilder internal constructor() {
    private var daysOfWeeks: Output>? = null

    private var fullBackupFrequency: Output? = null

    private var fullBackupStartHour: Output? = null

    private var fullBackupWindowInHours: Output? = null

    private var logBackupFrequencyInMinutes: Output? = null

    /**
     * @param value A list of days on which backup can take place. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`
     * > **NOTE:** `days_of_week` can only be specified when `manual_schedule` is set to `Weekly`
     */
    @JvmName("ktgvkrdtpminkrno")
    public suspend fun daysOfWeeks(`value`: Output>) {
        this.daysOfWeeks = value
    }

    @JvmName("kbjjrxxyhopfhcyr")
    public suspend fun daysOfWeeks(vararg values: Output) {
        this.daysOfWeeks = Output.all(values.asList())
    }

    /**
     * @param values A list of days on which backup can take place. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`
     * > **NOTE:** `days_of_week` can only be specified when `manual_schedule` is set to `Weekly`
     */
    @JvmName("fhcfgxjophfjsimj")
    public suspend fun daysOfWeeks(values: List>) {
        this.daysOfWeeks = Output.all(values)
    }

    /**
     * @param value Frequency of full backups. Valid values include `Daily` or `Weekly`.
     */
    @JvmName("xmyxwgsiwfijahyk")
    public suspend fun fullBackupFrequency(`value`: Output) {
        this.fullBackupFrequency = value
    }

    /**
     * @param value Start hour of a given day during which full backups can take place. Valid values are from `0` to `23`.
     */
    @JvmName("ruwawsfwxplpktpx")
    public suspend fun fullBackupStartHour(`value`: Output) {
        this.fullBackupStartHour = value
    }

    /**
     * @param value Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between `1` and `23`.
     */
    @JvmName("lnfmdgfgcmxtonvr")
    public suspend fun fullBackupWindowInHours(`value`: Output) {
        this.fullBackupWindowInHours = value
    }

    /**
     * @param value Frequency of log backups, in minutes. Valid values are from `5` to `60`.
     */
    @JvmName("silooswtywxjthft")
    public suspend fun logBackupFrequencyInMinutes(`value`: Output) {
        this.logBackupFrequencyInMinutes = value
    }

    /**
     * @param value A list of days on which backup can take place. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`
     * > **NOTE:** `days_of_week` can only be specified when `manual_schedule` is set to `Weekly`
     */
    @JvmName("ndcfiotkshrvecrb")
    public suspend fun daysOfWeeks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.daysOfWeeks = mapped
    }

    /**
     * @param values A list of days on which backup can take place. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`
     * > **NOTE:** `days_of_week` can only be specified when `manual_schedule` is set to `Weekly`
     */
    @JvmName("hiwhlntxjwnqtkyk")
    public suspend fun daysOfWeeks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfWeeks = mapped
    }

    /**
     * @param value Frequency of full backups. Valid values include `Daily` or `Weekly`.
     */
    @JvmName("vgebwhbdxguhjtyd")
    public suspend fun fullBackupFrequency(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fullBackupFrequency = mapped
    }

    /**
     * @param value Start hour of a given day during which full backups can take place. Valid values are from `0` to `23`.
     */
    @JvmName("jmstwpudktiqlniy")
    public suspend fun fullBackupStartHour(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fullBackupStartHour = mapped
    }

    /**
     * @param value Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between `1` and `23`.
     */
    @JvmName("ynmgohyufvykmwch")
    public suspend fun fullBackupWindowInHours(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fullBackupWindowInHours = mapped
    }

    /**
     * @param value Frequency of log backups, in minutes. Valid values are from `5` to `60`.
     */
    @JvmName("jjfbxgspvpflpayw")
    public suspend fun logBackupFrequencyInMinutes(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logBackupFrequencyInMinutes = mapped
    }

    internal fun build(): VirtualMachineAutoBackupManualScheduleArgs =
        VirtualMachineAutoBackupManualScheduleArgs(
            daysOfWeeks = daysOfWeeks,
            fullBackupFrequency = fullBackupFrequency ?: throw PulumiNullFieldException("fullBackupFrequency"),
            fullBackupStartHour = fullBackupStartHour ?: throw PulumiNullFieldException("fullBackupStartHour"),
            fullBackupWindowInHours = fullBackupWindowInHours ?: throw
                PulumiNullFieldException("fullBackupWindowInHours"),
            logBackupFrequencyInMinutes = logBackupFrequencyInMinutes ?: throw
                PulumiNullFieldException("logBackupFrequencyInMinutes"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy