
com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.hdinsight.kotlin.inputs
import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Deprecated
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property capacity
* @property recurrence A `recurrence` block as defined below.
*/
public data class InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs(
@Deprecated(
message = """
HDInsight interactive query clusters can no longer be configured through `autoscale.0.capacity`.
Use `autoscale.0.recurrence` instead.
""",
)
public val capacity: Output? = null,
public val recurrence: Output? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs =
com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.recurrence(recurrence?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs].
*/
@PulumiTagMarker
public class InteractiveQueryClusterRolesWorkerNodeAutoscaleArgsBuilder internal constructor() {
private var capacity: Output? = null
private var recurrence: Output? =
null
/**
* @param value
*/
@Deprecated(
message = """
HDInsight interactive query clusters can no longer be configured through `autoscale.0.capacity`.
Use `autoscale.0.recurrence` instead.
""",
)
@JvmName("uhpwevixdcatvwum")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value A `recurrence` block as defined below.
*/
@JvmName("ypvowcjpqvsmermw")
public suspend fun recurrence(`value`: Output) {
this.recurrence = value
}
/**
* @param value
*/
@Deprecated(
message = """
HDInsight interactive query clusters can no longer be configured through `autoscale.0.capacity`.
Use `autoscale.0.recurrence` instead.
""",
)
@JvmName("lumbviycfehajdap")
public suspend fun capacity(`value`: InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param argument
*/
@Deprecated(
message = """
HDInsight interactive query clusters can no longer be configured through `autoscale.0.capacity`.
Use `autoscale.0.recurrence` instead.
""",
)
@JvmName("fnfigmvtknqyubau")
public suspend fun capacity(argument: suspend InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgsBuilder.() -> Unit) {
val toBeMapped =
InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.capacity = mapped
}
/**
* @param value A `recurrence` block as defined below.
*/
@JvmName("tsvkslmwbqtslqgq")
public suspend fun recurrence(`value`: InteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.recurrence = mapped
}
/**
* @param argument A `recurrence` block as defined below.
*/
@JvmName("rqngwweonjobpnkh")
public suspend fun recurrence(argument: suspend InteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceArgsBuilder.() -> Unit) {
val toBeMapped =
InteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.recurrence = mapped
}
internal fun build(): InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs =
InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs(
capacity = capacity,
recurrence = recurrence,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy