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

com.pulumi.azure.hdinsight.kotlin.inputs.HadoopClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.hdinsight.kotlin.inputs

import com.pulumi.azure.hdinsight.inputs.HadoopClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs.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 The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
 * @property targetInstanceCount The number of worker nodes to autoscale at the specified time.
 * @property time The time of day to perform the autoscale in 24hour format.
 */
public data class HadoopClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs(
    public val days: Output>,
    public val targetInstanceCount: Output,
    public val time: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.hdinsight.inputs.HadoopClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs =
        com.pulumi.azure.hdinsight.inputs.HadoopClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs.builder()
            .days(days.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .targetInstanceCount(targetInstanceCount.applyValue({ args0 -> args0 }))
            .time(time.applyValue({ args0 -> args0 })).build()
}

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

    private var targetInstanceCount: Output? = null

    private var time: Output? = null

    /**
     * @param value The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     */
    @JvmName("iqbatqovaifkoups")
    public suspend fun days(`value`: Output>) {
        this.days = value
    }

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

    /**
     * @param values The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     */
    @JvmName("wrbaqpgmxgltwiou")
    public suspend fun days(values: List>) {
        this.days = Output.all(values)
    }

    /**
     * @param value The number of worker nodes to autoscale at the specified time.
     */
    @JvmName("jucokplwhfjacxmu")
    public suspend fun targetInstanceCount(`value`: Output) {
        this.targetInstanceCount = value
    }

    /**
     * @param value The time of day to perform the autoscale in 24hour format.
     */
    @JvmName("aphykjmodqhhisjs")
    public suspend fun time(`value`: Output) {
        this.time = value
    }

    /**
     * @param value The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     */
    @JvmName("clielewpmwvinuks")
    public suspend fun days(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param values The days of the week to perform autoscale. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     */
    @JvmName("ueggtyxlcrmxifvl")
    public suspend fun days(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param value The number of worker nodes to autoscale at the specified time.
     */
    @JvmName("nngnlqqlkwqpicfb")
    public suspend fun targetInstanceCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetInstanceCount = mapped
    }

    /**
     * @param value The time of day to perform the autoscale in 24hour format.
     */
    @JvmName("gxpojmgavdgqqxpb")
    public suspend fun time(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.time = mapped
    }

    internal fun build(): HadoopClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs =
        HadoopClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs(
            days = days ?: throw PulumiNullFieldException("days"),
            targetInstanceCount = targetInstanceCount ?: throw PulumiNullFieldException("targetInstanceCount"),
            time = time ?: throw PulumiNullFieldException("time"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy