com.pulumi.digitalocean.kotlin.inputs.AppSpecServiceAutoscalingMetricsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecServiceAutoscalingMetricsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property cpu Settings for scaling the component based on CPU utilization.
*/
public data class AppSpecServiceAutoscalingMetricsArgs(
public val cpu: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecServiceAutoscalingMetricsArgs =
com.pulumi.digitalocean.inputs.AppSpecServiceAutoscalingMetricsArgs.builder()
.cpu(cpu?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AppSpecServiceAutoscalingMetricsArgs].
*/
@PulumiTagMarker
public class AppSpecServiceAutoscalingMetricsArgsBuilder internal constructor() {
private var cpu: Output? = null
/**
* @param value Settings for scaling the component based on CPU utilization.
*/
@JvmName("lfaagexgrawlgvyy")
public suspend fun cpu(`value`: Output) {
this.cpu = value
}
/**
* @param value Settings for scaling the component based on CPU utilization.
*/
@JvmName("uoyggtelthsnmfqg")
public suspend fun cpu(`value`: AppSpecServiceAutoscalingMetricsCpuArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cpu = mapped
}
/**
* @param argument Settings for scaling the component based on CPU utilization.
*/
@JvmName("ujakwgkdylrkrnic")
public suspend fun cpu(argument: suspend AppSpecServiceAutoscalingMetricsCpuArgsBuilder.() -> Unit) {
val toBeMapped = AppSpecServiceAutoscalingMetricsCpuArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.cpu = mapped
}
internal fun build(): AppSpecServiceAutoscalingMetricsArgs = AppSpecServiceAutoscalingMetricsArgs(
cpu = cpu,
)
}