com.pulumi.gcp.spanner.kotlin.inputs.InstanceAutoscalingConfigAutoscalingTargetsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.spanner.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigAutoscalingTargetsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property highPriorityCpuUtilizationPercent Specifies the target high priority cpu utilization percentage that the autoscaler
* should be trying to achieve for the instance.
* This number is on a scale from 0 (no utilization) to 100 (full utilization)..
* @property storageUtilizationPercent Specifies the target storage utilization percentage that the autoscaler
* should be trying to achieve for the instance.
* This number is on a scale from 0 (no utilization) to 100 (full utilization).
*/
public data class InstanceAutoscalingConfigAutoscalingTargetsArgs(
public val highPriorityCpuUtilizationPercent: Output? = null,
public val storageUtilizationPercent: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigAutoscalingTargetsArgs =
com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigAutoscalingTargetsArgs.builder()
.highPriorityCpuUtilizationPercent(
highPriorityCpuUtilizationPercent?.applyValue({ args0 ->
args0
}),
)
.storageUtilizationPercent(storageUtilizationPercent?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceAutoscalingConfigAutoscalingTargetsArgs].
*/
@PulumiTagMarker
public class InstanceAutoscalingConfigAutoscalingTargetsArgsBuilder internal constructor() {
private var highPriorityCpuUtilizationPercent: Output? = null
private var storageUtilizationPercent: Output? = null
/**
* @param value Specifies the target high priority cpu utilization percentage that the autoscaler
* should be trying to achieve for the instance.
* This number is on a scale from 0 (no utilization) to 100 (full utilization)..
*/
@JvmName("aohnbmfgcfhhcumc")
public suspend fun highPriorityCpuUtilizationPercent(`value`: Output) {
this.highPriorityCpuUtilizationPercent = value
}
/**
* @param value Specifies the target storage utilization percentage that the autoscaler
* should be trying to achieve for the instance.
* This number is on a scale from 0 (no utilization) to 100 (full utilization).
*/
@JvmName("jkecdofcubgfeddn")
public suspend fun storageUtilizationPercent(`value`: Output) {
this.storageUtilizationPercent = value
}
/**
* @param value Specifies the target high priority cpu utilization percentage that the autoscaler
* should be trying to achieve for the instance.
* This number is on a scale from 0 (no utilization) to 100 (full utilization)..
*/
@JvmName("lrlhpatuqmblqtwo")
public suspend fun highPriorityCpuUtilizationPercent(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.highPriorityCpuUtilizationPercent = mapped
}
/**
* @param value Specifies the target storage utilization percentage that the autoscaler
* should be trying to achieve for the instance.
* This number is on a scale from 0 (no utilization) to 100 (full utilization).
*/
@JvmName("hhjgxvhyjhclrfes")
public suspend fun storageUtilizationPercent(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageUtilizationPercent = mapped
}
internal fun build(): InstanceAutoscalingConfigAutoscalingTargetsArgs =
InstanceAutoscalingConfigAutoscalingTargetsArgs(
highPriorityCpuUtilizationPercent = highPriorityCpuUtilizationPercent,
storageUtilizationPercent = storageUtilizationPercent,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy