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

com.pulumi.azure.hdinsight.kotlin.outputs.InteractiveQueryClusterRolesWorkerNodeAutoscale.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.hdinsight.kotlin.outputs

import kotlin.Deprecated
import kotlin.Suppress

/**
 *
 * @property capacity
 * @property recurrence A `recurrence` block as defined below.
 */
public data class InteractiveQueryClusterRolesWorkerNodeAutoscale(
    @Deprecated(
        message = """
  HDInsight interactive query clusters can no longer be configured through `autoscale.0.capacity`.
      Use `autoscale.0.recurrence` instead.
  """,
    )
    public val capacity: InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacity? = null,
    public val recurrence: InteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrence? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.hdinsight.outputs.InteractiveQueryClusterRolesWorkerNodeAutoscale): InteractiveQueryClusterRolesWorkerNodeAutoscale =
            InteractiveQueryClusterRolesWorkerNodeAutoscale(
                capacity = javaType.capacity().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.hdinsight.kotlin.outputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacity.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                recurrence = javaType.recurrence().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.hdinsight.kotlin.outputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrence.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy