com.pulumi.gcp.container.kotlin.inputs.ClusterClusterAutoscalingResourceLimitArgs.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.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingResourceLimitArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maximum Maximum amount of the resource in the cluster.
* @property minimum Minimum amount of the resource in the cluster.
* @property resourceType The type of the resource. For example, `cpu` and
* `memory`. See the [guide to using Node Auto-Provisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
* for a list of types.
*/
public data class ClusterClusterAutoscalingResourceLimitArgs(
public val maximum: Output? = null,
public val minimum: Output? = null,
public val resourceType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingResourceLimitArgs = com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingResourceLimitArgs.builder()
.maximum(maximum?.applyValue({ args0 -> args0 }))
.minimum(minimum?.applyValue({ args0 -> args0 }))
.resourceType(resourceType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterClusterAutoscalingResourceLimitArgs].
*/
@PulumiTagMarker
public class ClusterClusterAutoscalingResourceLimitArgsBuilder internal constructor() {
private var maximum: Output? = null
private var minimum: Output? = null
private var resourceType: Output? = null
/**
* @param value Maximum amount of the resource in the cluster.
*/
@JvmName("ynfhfwuwnjsmtiqp")
public suspend fun maximum(`value`: Output) {
this.maximum = value
}
/**
* @param value Minimum amount of the resource in the cluster.
*/
@JvmName("qfkdwmnvuapycpwn")
public suspend fun minimum(`value`: Output) {
this.minimum = value
}
/**
* @param value The type of the resource. For example, `cpu` and
* `memory`. See the [guide to using Node Auto-Provisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
* for a list of types.
*/
@JvmName("fxxjxwbsebwbvaea")
public suspend fun resourceType(`value`: Output) {
this.resourceType = value
}
/**
* @param value Maximum amount of the resource in the cluster.
*/
@JvmName("jmivbiokcojuooyc")
public suspend fun maximum(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximum = mapped
}
/**
* @param value Minimum amount of the resource in the cluster.
*/
@JvmName("rekeqrqufcwwyxsl")
public suspend fun minimum(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minimum = mapped
}
/**
* @param value The type of the resource. For example, `cpu` and
* `memory`. See the [guide to using Node Auto-Provisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
* for a list of types.
*/
@JvmName("aegrdhuxgoltbcfh")
public suspend fun resourceType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resourceType = mapped
}
internal fun build(): ClusterClusterAutoscalingResourceLimitArgs =
ClusterClusterAutoscalingResourceLimitArgs(
maximum = maximum,
minimum = minimum,
resourceType = resourceType ?: throw PulumiNullFieldException("resourceType"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy