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

com.pulumi.azure.monitoring.kotlin.inputs.AutoscaleSettingProfileRecurrenceArgs.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.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileRecurrenceArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property days A list of days that this profile takes effect on. Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
 * @property hours A list containing a single item, which specifies the Hour interval at which this recurrence should be triggered (in 24-hour time). Possible values are from `0` to `23`.
 * @property minutes A list containing a single item which specifies the Minute interval at which this recurrence should be triggered.
 * @property timezone The Time Zone used for the `hours` field. A list of [possible values can be found here](https://msdn.microsoft.com/en-us/library/azure/dn931928.aspx). Defaults to `UTC`.
 */
public data class AutoscaleSettingProfileRecurrenceArgs(
    public val days: Output>,
    public val hours: Output,
    public val minutes: Output,
    public val timezone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileRecurrenceArgs =
        com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileRecurrenceArgs.builder()
            .days(days.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .hours(hours.applyValue({ args0 -> args0 }))
            .minutes(minutes.applyValue({ args0 -> args0 }))
            .timezone(timezone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutoscaleSettingProfileRecurrenceArgs].
 */
@PulumiTagMarker
public class AutoscaleSettingProfileRecurrenceArgsBuilder internal constructor() {
    private var days: Output>? = null

    private var hours: Output? = null

    private var minutes: Output? = null

    private var timezone: Output? = null

    /**
     * @param value A list of days that this profile takes effect on. Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     */
    @JvmName("mcjpgjfrxysrhrfb")
    public suspend fun days(`value`: Output>) {
        this.days = value
    }

    @JvmName("apxxhrpwhqqabtmg")
    public suspend fun days(vararg values: Output) {
        this.days = Output.all(values.asList())
    }

    /**
     * @param values A list of days that this profile takes effect on. Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     */
    @JvmName("jdtbljfxuocrihdl")
    public suspend fun days(values: List>) {
        this.days = Output.all(values)
    }

    /**
     * @param value A list containing a single item, which specifies the Hour interval at which this recurrence should be triggered (in 24-hour time). Possible values are from `0` to `23`.
     */
    @JvmName("epcoouuinktqwnyj")
    public suspend fun hours(`value`: Output) {
        this.hours = value
    }

    /**
     * @param value A list containing a single item which specifies the Minute interval at which this recurrence should be triggered.
     */
    @JvmName("bwdpinqcxtjihtsl")
    public suspend fun minutes(`value`: Output) {
        this.minutes = value
    }

    /**
     * @param value The Time Zone used for the `hours` field. A list of [possible values can be found here](https://msdn.microsoft.com/en-us/library/azure/dn931928.aspx). Defaults to `UTC`.
     */
    @JvmName("tfjmacqqihojkqvg")
    public suspend fun timezone(`value`: Output) {
        this.timezone = value
    }

    /**
     * @param value A list of days that this profile takes effect on. Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     */
    @JvmName("loblcwibqdsxkrdi")
    public suspend fun days(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param values A list of days that this profile takes effect on. Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     */
    @JvmName("ijgswqymsjrqthvf")
    public suspend fun days(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param value A list containing a single item, which specifies the Hour interval at which this recurrence should be triggered (in 24-hour time). Possible values are from `0` to `23`.
     */
    @JvmName("ajfnaatypqbxiffo")
    public suspend fun hours(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hours = mapped
    }

    /**
     * @param value A list containing a single item which specifies the Minute interval at which this recurrence should be triggered.
     */
    @JvmName("fuqoloeyafmvtjax")
    public suspend fun minutes(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minutes = mapped
    }

    /**
     * @param value The Time Zone used for the `hours` field. A list of [possible values can be found here](https://msdn.microsoft.com/en-us/library/azure/dn931928.aspx). Defaults to `UTC`.
     */
    @JvmName("wohxkbcguqdagwrk")
    public suspend fun timezone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timezone = mapped
    }

    internal fun build(): AutoscaleSettingProfileRecurrenceArgs =
        AutoscaleSettingProfileRecurrenceArgs(
            days = days ?: throw PulumiNullFieldException("days"),
            hours = hours ?: throw PulumiNullFieldException("hours"),
            minutes = minutes ?: throw PulumiNullFieldException("minutes"),
            timezone = timezone,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy