com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateScalingArgs.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.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateScalingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxInstanceCount Maximum number of serving instances that this resource should have.
* @property minInstanceCount Minimum number of instances for the service, to be divided among all revisions receiving traffic.
*/
public data class ServiceTemplateScalingArgs(
public val maxInstanceCount: Output? = null,
public val minInstanceCount: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateScalingArgs =
com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateScalingArgs.builder()
.maxInstanceCount(maxInstanceCount?.applyValue({ args0 -> args0 }))
.minInstanceCount(minInstanceCount?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTemplateScalingArgs].
*/
@PulumiTagMarker
public class ServiceTemplateScalingArgsBuilder internal constructor() {
private var maxInstanceCount: Output? = null
private var minInstanceCount: Output? = null
/**
* @param value Maximum number of serving instances that this resource should have.
*/
@JvmName("ttgcdlhgfmtloaiu")
public suspend fun maxInstanceCount(`value`: Output) {
this.maxInstanceCount = value
}
/**
* @param value Minimum number of instances for the service, to be divided among all revisions receiving traffic.
*/
@JvmName("hunpiqxuqycqkxft")
public suspend fun minInstanceCount(`value`: Output) {
this.minInstanceCount = value
}
/**
* @param value Maximum number of serving instances that this resource should have.
*/
@JvmName("skrbbiwhhsbywfyf")
public suspend fun maxInstanceCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxInstanceCount = mapped
}
/**
* @param value Minimum number of instances for the service, to be divided among all revisions receiving traffic.
*/
@JvmName("fajbqquyelqqqguj")
public suspend fun minInstanceCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minInstanceCount = mapped
}
internal fun build(): ServiceTemplateScalingArgs = ServiceTemplateScalingArgs(
maxInstanceCount = maxInstanceCount,
minInstanceCount = minInstanceCount,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy