
com.pulumi.googlenative.compute.beta.kotlin.inputs.SchedulingNodeAffinityArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.googlenative.compute.beta.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.inputs.SchedulingNodeAffinityArgs.builder
import com.pulumi.googlenative.compute.beta.kotlin.enums.SchedulingNodeAffinityOperator
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
* @property key Corresponds to the label key of Node resource.
* @property operator Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
* @property values Corresponds to the label values of Node resource.
*/
public data class SchedulingNodeAffinityArgs(
public val key: Output? = null,
public val `operator`: Output? = null,
public val values: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.beta.inputs.SchedulingNodeAffinityArgs =
com.pulumi.googlenative.compute.beta.inputs.SchedulingNodeAffinityArgs.builder()
.key(key?.applyValue({ args0 -> args0 }))
.`operator`(`operator`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.values(values?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [SchedulingNodeAffinityArgs].
*/
@PulumiTagMarker
public class SchedulingNodeAffinityArgsBuilder internal constructor() {
private var key: Output? = null
private var `operator`: Output? = null
private var values: Output>? = null
/**
* @param value Corresponds to the label key of Node resource.
*/
@JvmName("pqdpdxjpwdsvchil")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
*/
@JvmName("lolrebfdpqweoden")
public suspend fun `operator`(`value`: Output) {
this.`operator` = value
}
/**
* @param value Corresponds to the label values of Node resource.
*/
@JvmName("kmmrftfkwthtmpgt")
public suspend fun values(`value`: Output>) {
this.values = value
}
@JvmName("jickqiltsfsglofg")
public suspend fun values(vararg values: Output) {
this.values = Output.all(values.asList())
}
/**
* @param values Corresponds to the label values of Node resource.
*/
@JvmName("yclsweeafvjugnte")
public suspend fun values(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy