com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.inputs.MetricTargetPatchArgs.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.PulumiTagMarker
import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricTargetPatchArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* MetricTarget defines the target value, average value, or average utilization of a specific metric
* @property averageUtilization averageUtilization is the target 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. Currently only valid for Resource metric source type
* @property averageValue averageValue is the target value of the average of the metric across all relevant pods (as a quantity)
* @property type type represents whether the metric type is Utilization, Value, or AverageValue
* @property value value is the target value of the metric (as a quantity).
*/
public data class MetricTargetPatchArgs(
public val averageUtilization: Output? = null,
public val averageValue: Output? = null,
public val type: Output? = null,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricTargetPatchArgs =
com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricTargetPatchArgs.builder()
.averageUtilization(averageUtilization?.applyValue({ args0 -> args0 }))
.averageValue(averageValue?.applyValue({ args0 -> args0 }))
.type(type?.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MetricTargetPatchArgs].
*/
@PulumiTagMarker
public class MetricTargetPatchArgsBuilder internal constructor() {
private var averageUtilization: Output? = null
private var averageValue: Output? = null
private var type: Output? = null
private var `value`: Output? = null
/**
* @param value averageUtilization is the target 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. Currently only valid for Resource metric source type
*/
@JvmName("imrmvfqpsbqeardf")
public suspend fun averageUtilization(`value`: Output) {
this.averageUtilization = value
}
/**
* @param value averageValue is the target value of the average of the metric across all relevant pods (as a quantity)
*/
@JvmName("ilsujdcjgalrymaa")
public suspend fun averageValue(`value`: Output) {
this.averageValue = value
}
/**
* @param value type represents whether the metric type is Utilization, Value, or AverageValue
*/
@JvmName("ukegseeorogjmyys")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value value is the target value of the metric (as a quantity).
*/
@JvmName("snljanlexucxaghl")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value averageUtilization is the target 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. Currently only valid for Resource metric source type
*/
@JvmName("thfgpkwfnpgkqitg")
public suspend fun averageUtilization(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.averageUtilization = mapped
}
/**
* @param value averageValue is the target value of the average of the metric across all relevant pods (as a quantity)
*/
@JvmName("wacnyljrprxbrfis")
public suspend fun averageValue(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.averageValue = mapped
}
/**
* @param value type represents whether the metric type is Utilization, Value, or AverageValue
*/
@JvmName("bgwoorpufjgfjedx")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value value is the target value of the metric (as a quantity).
*/
@JvmName("xdwvrafrxuesijvv")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): MetricTargetPatchArgs = MetricTargetPatchArgs(
averageUtilization = averageUtilization,
averageValue = averageValue,
type = type,
`value` = `value`,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy