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

com.pulumi.azure.mysql.kotlin.inputs.FlexibleServerMaintenanceWindowArgs.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.mysql.kotlin.inputs

import com.pulumi.azure.mysql.inputs.FlexibleServerMaintenanceWindowArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property dayOfWeek The day of week for maintenance window. Defaults to `0`.
 * @property startHour The start hour for maintenance window. Defaults to `0`.
 * @property startMinute The start minute for maintenance window. Defaults to `0`.
 */
public data class FlexibleServerMaintenanceWindowArgs(
    public val dayOfWeek: Output? = null,
    public val startHour: Output? = null,
    public val startMinute: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mysql.inputs.FlexibleServerMaintenanceWindowArgs =
        com.pulumi.azure.mysql.inputs.FlexibleServerMaintenanceWindowArgs.builder()
            .dayOfWeek(dayOfWeek?.applyValue({ args0 -> args0 }))
            .startHour(startHour?.applyValue({ args0 -> args0 }))
            .startMinute(startMinute?.applyValue({ args0 -> args0 })).build()
}

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

    private var startHour: Output? = null

    private var startMinute: Output? = null

    /**
     * @param value The day of week for maintenance window. Defaults to `0`.
     */
    @JvmName("gwrftffdwvvtqybr")
    public suspend fun dayOfWeek(`value`: Output) {
        this.dayOfWeek = value
    }

    /**
     * @param value The start hour for maintenance window. Defaults to `0`.
     */
    @JvmName("qspovdjiwwmeuskq")
    public suspend fun startHour(`value`: Output) {
        this.startHour = value
    }

    /**
     * @param value The start minute for maintenance window. Defaults to `0`.
     */
    @JvmName("kftbbpmhvsxnjukx")
    public suspend fun startMinute(`value`: Output) {
        this.startMinute = value
    }

    /**
     * @param value The day of week for maintenance window. Defaults to `0`.
     */
    @JvmName("ufxwiojeobukbfwg")
    public suspend fun dayOfWeek(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dayOfWeek = mapped
    }

    /**
     * @param value The start hour for maintenance window. Defaults to `0`.
     */
    @JvmName("qralpqnswlbkpult")
    public suspend fun startHour(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startHour = mapped
    }

    /**
     * @param value The start minute for maintenance window. Defaults to `0`.
     */
    @JvmName("eypbgguwggjvhbyq")
    public suspend fun startMinute(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startMinute = mapped
    }

    internal fun build(): FlexibleServerMaintenanceWindowArgs = FlexibleServerMaintenanceWindowArgs(
        dayOfWeek = dayOfWeek,
        startHour = startHour,
        startMinute = startMinute,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy