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

com.pulumi.gcp.dataproc.kotlin.inputs.MetastoreServiceMaintenanceWindowArgs.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.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.MetastoreServiceMaintenanceWindowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property dayOfWeek The day of week, when the window starts.
 * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
 * @property hourOfDay The hour of day (0-23) when the window starts.
 */
public data class MetastoreServiceMaintenanceWindowArgs(
    public val dayOfWeek: Output,
    public val hourOfDay: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.MetastoreServiceMaintenanceWindowArgs =
        com.pulumi.gcp.dataproc.inputs.MetastoreServiceMaintenanceWindowArgs.builder()
            .dayOfWeek(dayOfWeek.applyValue({ args0 -> args0 }))
            .hourOfDay(hourOfDay.applyValue({ args0 -> args0 })).build()
}

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

    private var hourOfDay: Output? = null

    /**
     * @param value The day of week, when the window starts.
     * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
     */
    @JvmName("gvsbdrkupculgfxk")
    public suspend fun dayOfWeek(`value`: Output) {
        this.dayOfWeek = value
    }

    /**
     * @param value The hour of day (0-23) when the window starts.
     */
    @JvmName("qsrdugavfqhnuugj")
    public suspend fun hourOfDay(`value`: Output) {
        this.hourOfDay = value
    }

    /**
     * @param value The day of week, when the window starts.
     * Possible values are: `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
     */
    @JvmName("xrsavgbsdqjnksot")
    public suspend fun dayOfWeek(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dayOfWeek = mapped
    }

    /**
     * @param value The hour of day (0-23) when the window starts.
     */
    @JvmName("gxqdcxlyulfufmqs")
    public suspend fun hourOfDay(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hourOfDay = mapped
    }

    internal fun build(): MetastoreServiceMaintenanceWindowArgs =
        MetastoreServiceMaintenanceWindowArgs(
            dayOfWeek = dayOfWeek ?: throw PulumiNullFieldException("dayOfWeek"),
            hourOfDay = hourOfDay ?: throw PulumiNullFieldException("hourOfDay"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy