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

com.pulumi.azure.hdinsight.kotlin.inputs.HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.hdinsight.inputs.HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property schedules A list of `schedule` blocks as defined below.
 * @property timezone The time zone for the autoscale schedule times.
 */
public data class HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs(
    public val schedules: Output>,
    public val timezone: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hdinsight.inputs.HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs =
        com.pulumi.azure.hdinsight.inputs.HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs.builder()
            .schedules(
                schedules.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .timezone(timezone.applyValue({ args0 -> args0 })).build()
}

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

    private var timezone: Output? = null

    /**
     * @param value A list of `schedule` blocks as defined below.
     */
    @JvmName("mbsuvcxlxgdqdbjk")
    public suspend fun schedules(`value`: Output>) {
        this.schedules = value
    }

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

    /**
     * @param values A list of `schedule` blocks as defined below.
     */
    @JvmName("ntpsibqqfajvhpcb")
    public suspend fun schedules(values: List>) {
        this.schedules = Output.all(values)
    }

    /**
     * @param value The time zone for the autoscale schedule times.
     */
    @JvmName("snkjsajledgcmxyi")
    public suspend fun timezone(`value`: Output) {
        this.timezone = value
    }

    /**
     * @param value A list of `schedule` blocks as defined below.
     */
    @JvmName("fhqaanhyronengaj")
    public suspend fun schedules(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schedules = mapped
    }

    /**
     * @param argument A list of `schedule` blocks as defined below.
     */
    @JvmName("osynculosjmaphin")
    public suspend fun schedules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.schedules = mapped
    }

    /**
     * @param argument A list of `schedule` blocks as defined below.
     */
    @JvmName("ajgrrmtniejoxmvo")
    public suspend fun schedules(vararg argument: suspend HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.schedules = mapped
    }

    /**
     * @param argument A list of `schedule` blocks as defined below.
     */
    @JvmName("qrlcrytkmhnuicud")
    public suspend fun schedules(argument: suspend HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.schedules = mapped
    }

    /**
     * @param values A list of `schedule` blocks as defined below.
     */
    @JvmName("wkxitvvpevkxrwol")
    public suspend fun schedules(vararg values: HBaseClusterRolesWorkerNodeAutoscaleRecurrenceScheduleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schedules = mapped
    }

    /**
     * @param value The time zone for the autoscale schedule times.
     */
    @JvmName("uvepryudcudiygcc")
    public suspend fun timezone(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timezone = mapped
    }

    internal fun build(): HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs =
        HBaseClusterRolesWorkerNodeAutoscaleRecurrenceArgs(
            schedules = schedules ?: throw PulumiNullFieldException("schedules"),
            timezone = timezone ?: throw PulumiNullFieldException("timezone"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy