com.pulumi.gcp.spanner.kotlin.inputs.InstanceAutoscalingConfigAutoscalingLimitsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 The maximum number of nodes for this specific replica.
* @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 The minimum number of nodes for this specific replica.
* @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 The maximum number of nodes for this specific replica.
*/
@JvmName("beyxayupotkioikc")
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("fkmfalgxnvywotbr")
public suspend fun maxProcessingUnits(`value`: Output) {
this.maxProcessingUnits = value
}
/**
* @param value The minimum number of nodes for this specific replica.
*/
@JvmName("ueofpgavqcellist")
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("bfkllwlqtcsincfp")
public suspend fun minProcessingUnits(`value`: Output) {
this.minProcessingUnits = value
}
/**
* @param value The maximum number of nodes for this specific replica.
*/
@JvmName("kmwqaqfqgrhcjdjq")
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("htyplywdoblnhkcx")
public suspend fun maxProcessingUnits(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxProcessingUnits = mapped
}
/**
* @param value The minimum number of nodes for this specific replica.
*/
@JvmName("eouepptewokwagfl")
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("penefdereljusbue")
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