com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.inputs.ContainerResourceMetricStatusArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ContainerResourceMetricStatusArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
* @property container Container is the name of the container in the pods of the scaling target
* @property current current contains the current value for the given metric
* @property name Name is the name of the resource in question.
*/
public data class ContainerResourceMetricStatusArgs(
public val container: Output,
public val current: Output,
public val name: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ContainerResourceMetricStatusArgs =
com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ContainerResourceMetricStatusArgs.builder()
.container(container.applyValue({ args0 -> args0 }))
.current(current.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContainerResourceMetricStatusArgs].
*/
@PulumiTagMarker
public class ContainerResourceMetricStatusArgsBuilder internal constructor() {
private var container: Output? = null
private var current: Output? = null
private var name: Output? = null
/**
* @param value Container is the name of the container in the pods of the scaling target
*/
@JvmName("eurqppnxkykwewqg")
public suspend fun container(`value`: Output) {
this.container = value
}
/**
* @param value current contains the current value for the given metric
*/
@JvmName("rnlfghoreabtmdlw")
public suspend fun current(`value`: Output) {
this.current = value
}
/**
* @param value Name is the name of the resource in question.
*/
@JvmName("suivjtlllmefebub")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Container is the name of the container in the pods of the scaling target
*/
@JvmName("dsyeygcfducvpunj")
public suspend fun container(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.container = mapped
}
/**
* @param value current contains the current value for the given metric
*/
@JvmName("hltbrqyahxxkfccw")
public suspend fun current(`value`: MetricValueStatusArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.current = mapped
}
/**
* @param argument current contains the current value for the given metric
*/
@JvmName("syuugdxxixpwnfvl")
public suspend fun current(argument: suspend MetricValueStatusArgsBuilder.() -> Unit) {
val toBeMapped = MetricValueStatusArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.current = mapped
}
/**
* @param value Name is the name of the resource in question.
*/
@JvmName("ajjrtngqcyymjslc")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ContainerResourceMetricStatusArgs = ContainerResourceMetricStatusArgs(
container = container ?: throw PulumiNullFieldException("container"),
current = current ?: throw PulumiNullFieldException("current"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy