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

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

import com.pulumi.azure.desktopvirtualization.inputs.HostPoolScheduledAgentUpdatesScheduleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 the week on which agent updates should be performed. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, and `Sunday`
 * @property hourOfDay The hour of day the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
 */
public data class HostPoolScheduledAgentUpdatesScheduleArgs(
    public val dayOfWeek: Output,
    public val hourOfDay: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.desktopvirtualization.inputs.HostPoolScheduledAgentUpdatesScheduleArgs =
        com.pulumi.azure.desktopvirtualization.inputs.HostPoolScheduledAgentUpdatesScheduleArgs.builder()
            .dayOfWeek(dayOfWeek.applyValue({ args0 -> args0 }))
            .hourOfDay(hourOfDay.applyValue({ args0 -> args0 })).build()
}

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

    private var hourOfDay: Output? = null

    /**
     * @param value The day of the week on which agent updates should be performed. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, and `Sunday`
     */
    @JvmName("kwfhdnafowqyddso")
    public suspend fun dayOfWeek(`value`: Output) {
        this.dayOfWeek = value
    }

    /**
     * @param value The hour of day the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
     */
    @JvmName("yfciriqvgwhecuhy")
    public suspend fun hourOfDay(`value`: Output) {
        this.hourOfDay = value
    }

    /**
     * @param value The day of the week on which agent updates should be performed. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, and `Sunday`
     */
    @JvmName("emxheubxipimtmqg")
    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 the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
     */
    @JvmName("rewgixxmnwereqdf")
    public suspend fun hourOfDay(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hourOfDay = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy