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

com.pulumi.azurenative.sqlvirtualmachine.kotlin.inputs.AutoPatchingSettingsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.sqlvirtualmachine.kotlin.inputs

import com.pulumi.azurenative.sqlvirtualmachine.inputs.AutoPatchingSettingsArgs.builder
import com.pulumi.azurenative.sqlvirtualmachine.kotlin.enums.DayOfWeek
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Set a patching window during which Windows and SQL patches will be applied.
 * @property dayOfWeek Day of week to apply the patch on.
 * @property enable Enable or disable autopatching on SQL virtual machine.
 * @property maintenanceWindowDuration Duration of patching.
 * @property maintenanceWindowStartingHour Hour of the day when patching is initiated. Local VM time.
 */
public data class AutoPatchingSettingsArgs(
    public val dayOfWeek: Output? = null,
    public val enable: Output? = null,
    public val maintenanceWindowDuration: Output? = null,
    public val maintenanceWindowStartingHour: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.sqlvirtualmachine.inputs.AutoPatchingSettingsArgs =
        com.pulumi.azurenative.sqlvirtualmachine.inputs.AutoPatchingSettingsArgs.builder()
            .dayOfWeek(dayOfWeek?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enable(enable?.applyValue({ args0 -> args0 }))
            .maintenanceWindowDuration(maintenanceWindowDuration?.applyValue({ args0 -> args0 }))
            .maintenanceWindowStartingHour(
                maintenanceWindowStartingHour?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [AutoPatchingSettingsArgs].
 */
@PulumiTagMarker
public class AutoPatchingSettingsArgsBuilder internal constructor() {
    private var dayOfWeek: Output? = null

    private var enable: Output? = null

    private var maintenanceWindowDuration: Output? = null

    private var maintenanceWindowStartingHour: Output? = null

    /**
     * @param value Day of week to apply the patch on.
     */
    @JvmName("evhgxeorewbhqouj")
    public suspend fun dayOfWeek(`value`: Output) {
        this.dayOfWeek = value
    }

    /**
     * @param value Enable or disable autopatching on SQL virtual machine.
     */
    @JvmName("ovudkrrowrfpvfon")
    public suspend fun enable(`value`: Output) {
        this.enable = value
    }

    /**
     * @param value Duration of patching.
     */
    @JvmName("lltcoqsioqpywjfv")
    public suspend fun maintenanceWindowDuration(`value`: Output) {
        this.maintenanceWindowDuration = value
    }

    /**
     * @param value Hour of the day when patching is initiated. Local VM time.
     */
    @JvmName("glpjbdajmbbssiyy")
    public suspend fun maintenanceWindowStartingHour(`value`: Output) {
        this.maintenanceWindowStartingHour = value
    }

    /**
     * @param value Day of week to apply the patch on.
     */
    @JvmName("pvxgsxhnjkenbkkh")
    public suspend fun dayOfWeek(`value`: DayOfWeek?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dayOfWeek = mapped
    }

    /**
     * @param value Enable or disable autopatching on SQL virtual machine.
     */
    @JvmName("dcnqmecycrabxwnm")
    public suspend fun enable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enable = mapped
    }

    /**
     * @param value Duration of patching.
     */
    @JvmName("kijuvkfpntjsqpgn")
    public suspend fun maintenanceWindowDuration(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintenanceWindowDuration = mapped
    }

    /**
     * @param value Hour of the day when patching is initiated. Local VM time.
     */
    @JvmName("henswqxywxwxgtwr")
    public suspend fun maintenanceWindowStartingHour(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintenanceWindowStartingHour = mapped
    }

    internal fun build(): AutoPatchingSettingsArgs = AutoPatchingSettingsArgs(
        dayOfWeek = dayOfWeek,
        enable = enable,
        maintenanceWindowDuration = maintenanceWindowDuration,
        maintenanceWindowStartingHour = maintenanceWindowStartingHour,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy