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

com.pulumi.gcp.sql.kotlin.inputs.DatabaseInstanceSettingsMaintenanceWindowArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.sql.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsMaintenanceWindowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property day Day of week (`1-7`), starting on Monday
 * @property hour Hour of day (`0-23`), ignored if `day` not set
 * @property updateTrack Receive updates earlier (`canary`) or later
 * (`stable`)
 */
public data class DatabaseInstanceSettingsMaintenanceWindowArgs(
    public val day: Output? = null,
    public val hour: Output? = null,
    public val updateTrack: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsMaintenanceWindowArgs =
        com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsMaintenanceWindowArgs.builder()
            .day(day?.applyValue({ args0 -> args0 }))
            .hour(hour?.applyValue({ args0 -> args0 }))
            .updateTrack(updateTrack?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatabaseInstanceSettingsMaintenanceWindowArgs].
 */
@PulumiTagMarker
public class DatabaseInstanceSettingsMaintenanceWindowArgsBuilder internal constructor() {
    private var day: Output? = null

    private var hour: Output? = null

    private var updateTrack: Output? = null

    /**
     * @param value Day of week (`1-7`), starting on Monday
     */
    @JvmName("wwdufsyecxwlcifm")
    public suspend fun day(`value`: Output) {
        this.day = value
    }

    /**
     * @param value Hour of day (`0-23`), ignored if `day` not set
     */
    @JvmName("kkfnokeagffdiiys")
    public suspend fun hour(`value`: Output) {
        this.hour = value
    }

    /**
     * @param value Receive updates earlier (`canary`) or later
     * (`stable`)
     */
    @JvmName("jpflksdtfbksydco")
    public suspend fun updateTrack(`value`: Output) {
        this.updateTrack = value
    }

    /**
     * @param value Day of week (`1-7`), starting on Monday
     */
    @JvmName("auprdeusijtlnnqe")
    public suspend fun day(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.day = mapped
    }

    /**
     * @param value Hour of day (`0-23`), ignored if `day` not set
     */
    @JvmName("uwautdvbjkldbxnv")
    public suspend fun hour(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hour = mapped
    }

    /**
     * @param value Receive updates earlier (`canary`) or later
     * (`stable`)
     */
    @JvmName("xplrqawxxtfsbbim")
    public suspend fun updateTrack(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.updateTrack = mapped
    }

    internal fun build(): DatabaseInstanceSettingsMaintenanceWindowArgs =
        DatabaseInstanceSettingsMaintenanceWindowArgs(
            day = day,
            hour = hour,
            updateTrack = updateTrack,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy