com.pulumi.kubernetes.autoscaling.v2.kotlin.inputs.MetricValueStatusArgs.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.v2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* MetricValueStatus holds the current value for a metric
* @property averageUtilization currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
* @property averageValue averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
* @property value value is the current value of the metric (as a quantity).
*/
public data class MetricValueStatusArgs(
public val averageUtilization: Output? = null,
public val averageValue: Output? = null,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs =
com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs.builder()
.averageUtilization(averageUtilization?.applyValue({ args0 -> args0 }))
.averageValue(averageValue?.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MetricValueStatusArgs].
*/
@PulumiTagMarker
public class MetricValueStatusArgsBuilder internal constructor() {
private var averageUtilization: Output? = null
private var averageValue: Output? = null
private var `value`: Output? = null
/**
* @param value currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
*/
@JvmName("iwhuvsxedmqejukb")
public suspend fun averageUtilization(`value`: Output) {
this.averageUtilization = value
}
/**
* @param value averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
*/
@JvmName("yviscyqgbcnlacao")
public suspend fun averageValue(`value`: Output) {
this.averageValue = value
}
/**
* @param value value is the current value of the metric (as a quantity).
*/
@JvmName("iudhenqjloudemaw")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
*/
@JvmName("rloynsgsosnnmeol")
public suspend fun averageUtilization(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.averageUtilization = mapped
}
/**
* @param value averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
*/
@JvmName("rprjfpkodgrsawru")
public suspend fun averageValue(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.averageValue = mapped
}
/**
* @param value value is the current value of the metric (as a quantity).
*/
@JvmName("yqmpvvdovguyacmx")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): MetricValueStatusArgs = MetricValueStatusArgs(
averageUtilization = averageUtilization,
averageValue = averageValue,
`value` = `value`,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy