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

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

package com.pulumi.gcp.spanner.kotlin.inputs

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

/**
 *
 * @property maxNodes Specifies maximum number of nodes allocated to the instance. If set, this number
 * should be greater than or equal to min_nodes.
 * @property maxProcessingUnits Specifies maximum number of processing units allocated to the instance.
 * If set, this number should be multiples of 1000 and be greater than or equal to
 * min_processing_units.
 * @property minNodes Specifies number of nodes allocated to the instance. If set, this number
 * should be greater than or equal to 1.
 * @property minProcessingUnits Specifies minimum number of processing units allocated to the instance.
 * If set, this number should be multiples of 1000.
 */
public data class InstanceAutoscalingConfigAutoscalingLimitsArgs(
    public val maxNodes: Output? = null,
    public val maxProcessingUnits: Output? = null,
    public val minNodes: Output? = null,
    public val minProcessingUnits: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigAutoscalingLimitsArgs =
        com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigAutoscalingLimitsArgs.builder()
            .maxNodes(maxNodes?.applyValue({ args0 -> args0 }))
            .maxProcessingUnits(maxProcessingUnits?.applyValue({ args0 -> args0 }))
            .minNodes(minNodes?.applyValue({ args0 -> args0 }))
            .minProcessingUnits(minProcessingUnits?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceAutoscalingConfigAutoscalingLimitsArgs].
 */
@PulumiTagMarker
public class InstanceAutoscalingConfigAutoscalingLimitsArgsBuilder internal constructor() {
    private var maxNodes: Output? = null

    private var maxProcessingUnits: Output? = null

    private var minNodes: Output? = null

    private var minProcessingUnits: Output? = null

    /**
     * @param value Specifies maximum number of nodes allocated to the instance. If set, this number
     * should be greater than or equal to min_nodes.
     */
    @JvmName("gwobqytbesaixrhv")
    public suspend fun maxNodes(`value`: Output) {
        this.maxNodes = value
    }

    /**
     * @param value Specifies maximum number of processing units allocated to the instance.
     * If set, this number should be multiples of 1000 and be greater than or equal to
     * min_processing_units.
     */
    @JvmName("yjdyiflkavsmiheq")
    public suspend fun maxProcessingUnits(`value`: Output) {
        this.maxProcessingUnits = value
    }

    /**
     * @param value Specifies number of nodes allocated to the instance. If set, this number
     * should be greater than or equal to 1.
     */
    @JvmName("rnxvqedtxlbeyutc")
    public suspend fun minNodes(`value`: Output) {
        this.minNodes = value
    }

    /**
     * @param value Specifies minimum number of processing units allocated to the instance.
     * If set, this number should be multiples of 1000.
     */
    @JvmName("kumnpjujsxpmqcvk")
    public suspend fun minProcessingUnits(`value`: Output) {
        this.minProcessingUnits = value
    }

    /**
     * @param value Specifies maximum number of nodes allocated to the instance. If set, this number
     * should be greater than or equal to min_nodes.
     */
    @JvmName("flaowirhqvkyrixl")
    public suspend fun maxNodes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxNodes = mapped
    }

    /**
     * @param value Specifies maximum number of processing units allocated to the instance.
     * If set, this number should be multiples of 1000 and be greater than or equal to
     * min_processing_units.
     */
    @JvmName("byypdpiqqdryqqsp")
    public suspend fun maxProcessingUnits(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxProcessingUnits = mapped
    }

    /**
     * @param value Specifies number of nodes allocated to the instance. If set, this number
     * should be greater than or equal to 1.
     */
    @JvmName("djvnlnyjkiixkhxn")
    public suspend fun minNodes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minNodes = mapped
    }

    /**
     * @param value Specifies minimum number of processing units allocated to the instance.
     * If set, this number should be multiples of 1000.
     */
    @JvmName("dmbglkhqirxxscmn")
    public suspend fun minProcessingUnits(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minProcessingUnits = mapped
    }

    internal fun build(): InstanceAutoscalingConfigAutoscalingLimitsArgs =
        InstanceAutoscalingConfigAutoscalingLimitsArgs(
            maxNodes = maxNodes,
            maxProcessingUnits = maxProcessingUnits,
            minNodes = minNodes,
            minProcessingUnits = minProcessingUnits,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy