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

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

import com.pulumi.azure.postgresql.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, where the week starts on a Sunday, i.e. Sunday = `0`, Monday = `1`. 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`.
 * > **NOTE** The specified `maintenance_window` is always defined in UTC time. When unspecified, the maintenance window falls back to the default [system-managed](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-maintenance-portal#specify-maintenance-schedule-options).
 */
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.postgresql.inputs.FlexibleServerMaintenanceWindowArgs =
        com.pulumi.azure.postgresql.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, where the week starts on a Sunday, i.e. Sunday = `0`, Monday = `1`. Defaults to `0`.
     */
    @JvmName("hijhuqvcrupnodqx")
    public suspend fun dayOfWeek(`value`: Output) {
        this.dayOfWeek = value
    }

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

    /**
     * @param value The start minute for maintenance window. Defaults to `0`.
     * > **NOTE** The specified `maintenance_window` is always defined in UTC time. When unspecified, the maintenance window falls back to the default [system-managed](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-maintenance-portal#specify-maintenance-schedule-options).
     */
    @JvmName("mknocmciyfbnndmk")
    public suspend fun startMinute(`value`: Output) {
        this.startMinute = value
    }

    /**
     * @param value The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = `0`, Monday = `1`. Defaults to `0`.
     */
    @JvmName("nejfvkotxxvjrsst")
    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("lpjiqpqdcaemdhrj")
    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`.
     * > **NOTE** The specified `maintenance_window` is always defined in UTC time. When unspecified, the maintenance window falls back to the default [system-managed](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-maintenance-portal#specify-maintenance-schedule-options).
     */
    @JvmName("cuqwjcwcllatguou")
    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