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

com.pulumi.gcp.looker.kotlin.inputs.InstanceMaintenanceWindowArgs.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.looker.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.looker.inputs.InstanceMaintenanceWindowArgs.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 dayOfWeek Required. Day of the week for this MaintenanceWindow (in UTC).
 * - MONDAY: Monday
 * - TUESDAY: Tuesday
 * - WEDNESDAY: Wednesday
 * - THURSDAY: Thursday
 * - FRIDAY: Friday
 * - SATURDAY: Saturday
 * - SUNDAY: Sunday
 * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
 * @property startTime Required. Start time of the window in UTC time.
 * Structure is documented below.
 */
public data class InstanceMaintenanceWindowArgs(
    public val dayOfWeek: Output,
    public val startTime: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.looker.inputs.InstanceMaintenanceWindowArgs =
        com.pulumi.gcp.looker.inputs.InstanceMaintenanceWindowArgs.builder()
            .dayOfWeek(dayOfWeek.applyValue({ args0 -> args0 }))
            .startTime(startTime.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var startTime: Output? = null

    /**
     * @param value Required. Day of the week for this MaintenanceWindow (in UTC).
     * - MONDAY: Monday
     * - TUESDAY: Tuesday
     * - WEDNESDAY: Wednesday
     * - THURSDAY: Thursday
     * - FRIDAY: Friday
     * - SATURDAY: Saturday
     * - SUNDAY: Sunday
     * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
     */
    @JvmName("xhurrtqcnedmnxmt")
    public suspend fun dayOfWeek(`value`: Output) {
        this.dayOfWeek = value
    }

    /**
     * @param value Required. Start time of the window in UTC time.
     * Structure is documented below.
     */
    @JvmName("nxonyukbbcwnmvko")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value Required. Day of the week for this MaintenanceWindow (in UTC).
     * - MONDAY: Monday
     * - TUESDAY: Tuesday
     * - WEDNESDAY: Wednesday
     * - THURSDAY: Thursday
     * - FRIDAY: Friday
     * - SATURDAY: Saturday
     * - SUNDAY: Sunday
     * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
     */
    @JvmName("ojvekfgkibgytxiu")
    public suspend fun dayOfWeek(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dayOfWeek = mapped
    }

    /**
     * @param value Required. Start time of the window in UTC time.
     * Structure is documented below.
     */
    @JvmName("gjogrjbdrpxgkorv")
    public suspend fun startTime(`value`: InstanceMaintenanceWindowStartTimeArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    /**
     * @param argument Required. Start time of the window in UTC time.
     * Structure is documented below.
     */
    @JvmName("uulmisdmkkpkhbpw")
    public suspend fun startTime(argument: suspend InstanceMaintenanceWindowStartTimeArgsBuilder.() -> Unit) {
        val toBeMapped = InstanceMaintenanceWindowStartTimeArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.startTime = mapped
    }

    internal fun build(): InstanceMaintenanceWindowArgs = InstanceMaintenanceWindowArgs(
        dayOfWeek = dayOfWeek ?: throw PulumiNullFieldException("dayOfWeek"),
        startTime = startTime ?: throw PulumiNullFieldException("startTime"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy