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

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

package com.pulumi.gcp.bigquery.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.ReservationAutoscaleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property currentSlots (Output)
 * The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].
 * @property maxSlots Number of slots to be scaled when needed.
 */
public data class ReservationAutoscaleArgs(
    public val currentSlots: Output? = null,
    public val maxSlots: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.ReservationAutoscaleArgs =
        com.pulumi.gcp.bigquery.inputs.ReservationAutoscaleArgs.builder()
            .currentSlots(currentSlots?.applyValue({ args0 -> args0 }))
            .maxSlots(maxSlots?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReservationAutoscaleArgs].
 */
@PulumiTagMarker
public class ReservationAutoscaleArgsBuilder internal constructor() {
    private var currentSlots: Output? = null

    private var maxSlots: Output? = null

    /**
     * @param value (Output)
     * The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].
     */
    @JvmName("ucfiprqhafuvwjky")
    public suspend fun currentSlots(`value`: Output) {
        this.currentSlots = value
    }

    /**
     * @param value Number of slots to be scaled when needed.
     */
    @JvmName("lwtjaihtqmtjevag")
    public suspend fun maxSlots(`value`: Output) {
        this.maxSlots = value
    }

    /**
     * @param value (Output)
     * The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].
     */
    @JvmName("yfgyebgswcmrsalr")
    public suspend fun currentSlots(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.currentSlots = mapped
    }

    /**
     * @param value Number of slots to be scaled when needed.
     */
    @JvmName("tgsybskirsgutsys")
    public suspend fun maxSlots(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxSlots = mapped
    }

    internal fun build(): ReservationAutoscaleArgs = ReservationAutoscaleArgs(
        currentSlots = currentSlots,
        maxSlots = maxSlots,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy