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

com.pulumi.gcp.dataproc.kotlin.inputs.MetastoreServiceScalingConfigAutoscalingConfigArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.MetastoreServiceScalingConfigAutoscalingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property autoscalingEnabled Defines whether autoscaling is enabled. The default value is false.
 * @property limitConfig Represents the limit configuration of a metastore service.
 * Structure is documented below.
 */
public data class MetastoreServiceScalingConfigAutoscalingConfigArgs(
    public val autoscalingEnabled: Output? = null,
    public val limitConfig: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.MetastoreServiceScalingConfigAutoscalingConfigArgs =
        com.pulumi.gcp.dataproc.inputs.MetastoreServiceScalingConfigAutoscalingConfigArgs.builder()
            .autoscalingEnabled(autoscalingEnabled?.applyValue({ args0 -> args0 }))
            .limitConfig(limitConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [MetastoreServiceScalingConfigAutoscalingConfigArgs].
 */
@PulumiTagMarker
public class MetastoreServiceScalingConfigAutoscalingConfigArgsBuilder internal constructor() {
    private var autoscalingEnabled: Output? = null

    private var limitConfig: Output? =
        null

    /**
     * @param value Defines whether autoscaling is enabled. The default value is false.
     */
    @JvmName("vgbywapyfpyeyanw")
    public suspend fun autoscalingEnabled(`value`: Output) {
        this.autoscalingEnabled = value
    }

    /**
     * @param value Represents the limit configuration of a metastore service.
     * Structure is documented below.
     */
    @JvmName("obsrmudrpiwhyaue")
    public suspend fun limitConfig(`value`: Output) {
        this.limitConfig = value
    }

    /**
     * @param value Defines whether autoscaling is enabled. The default value is false.
     */
    @JvmName("yordtikdycjcsikn")
    public suspend fun autoscalingEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoscalingEnabled = mapped
    }

    /**
     * @param value Represents the limit configuration of a metastore service.
     * Structure is documented below.
     */
    @JvmName("kvyclqwgncclokcn")
    public suspend fun limitConfig(`value`: MetastoreServiceScalingConfigAutoscalingConfigLimitConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.limitConfig = mapped
    }

    /**
     * @param argument Represents the limit configuration of a metastore service.
     * Structure is documented below.
     */
    @JvmName("lomfbiqqrynminxg")
    public suspend fun limitConfig(argument: suspend MetastoreServiceScalingConfigAutoscalingConfigLimitConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            MetastoreServiceScalingConfigAutoscalingConfigLimitConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.limitConfig = mapped
    }

    internal fun build(): MetastoreServiceScalingConfigAutoscalingConfigArgs =
        MetastoreServiceScalingConfigAutoscalingConfigArgs(
            autoscalingEnabled = autoscalingEnabled,
            limitConfig = limitConfig,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy