com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.inputs.ResourceMetricStatusArgs.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.
@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.ResourceMetricStatusArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing 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 current current contains the current value for the given metric
* @property name Name is the name of the resource in question.
*/
public data class ResourceMetricStatusArgs(
public val current: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ResourceMetricStatusArgs =
com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ResourceMetricStatusArgs.builder()
.current(current.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourceMetricStatusArgs].
*/
@PulumiTagMarker
public class ResourceMetricStatusArgsBuilder internal constructor() {
private var current: Output? = null
private var name: Output? = null
/**
* @param value current contains the current value for the given metric
*/
@JvmName("gdmipmttltvmjbly")
public suspend fun current(`value`: Output) {
this.current = value
}
/**
* @param value Name is the name of the resource in question.
*/
@JvmName("stardjnjixkhvioe")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value current contains the current value for the given metric
*/
@JvmName("gsbkfauyhwfcyaed")
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("nwsitifwaaqjjjqj")
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("fkqwkwtgfhaickqf")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ResourceMetricStatusArgs = ResourceMetricStatusArgs(
current = current ?: throw PulumiNullFieldException("current"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy