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

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

package com.pulumi.gcp.alloydb.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.alloydb.inputs.ClusterMaintenanceUpdatePolicyMaintenanceWindowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property day Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
 * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
 * @property startTime Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
 * Structure is documented below.
 */
public data class ClusterMaintenanceUpdatePolicyMaintenanceWindowArgs(
    public val day: Output,
    public val startTime: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.alloydb.inputs.ClusterMaintenanceUpdatePolicyMaintenanceWindowArgs =
        com.pulumi.gcp.alloydb.inputs.ClusterMaintenanceUpdatePolicyMaintenanceWindowArgs.builder()
            .day(day.applyValue({ args0 -> args0 }))
            .startTime(startTime.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var startTime: Output? =
        null

    /**
     * @param value Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
     * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
     */
    @JvmName("sjiluiuowkrnstgk")
    public suspend fun day(`value`: Output) {
        this.day = value
    }

    /**
     * @param value Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
     * Structure is documented below.
     */
    @JvmName("xoumeuxtbexhfjso")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
     * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
     */
    @JvmName("lqsabaihwcqqdyii")
    public suspend fun day(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.day = mapped
    }

    /**
     * @param value Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
     * Structure is documented below.
     */
    @JvmName("nasqkigfijayvgbw")
    public suspend fun startTime(`value`: ClusterMaintenanceUpdatePolicyMaintenanceWindowStartTimeArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    /**
     * @param argument Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
     * Structure is documented below.
     */
    @JvmName("oilgdvfqejywheey")
    public suspend fun startTime(argument: suspend ClusterMaintenanceUpdatePolicyMaintenanceWindowStartTimeArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterMaintenanceUpdatePolicyMaintenanceWindowStartTimeArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.startTime = mapped
    }

    internal fun build(): ClusterMaintenanceUpdatePolicyMaintenanceWindowArgs =
        ClusterMaintenanceUpdatePolicyMaintenanceWindowArgs(
            day = day ?: throw PulumiNullFieldException("day"),
            startTime = startTime ?: throw PulumiNullFieldException("startTime"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy