com.pulumi.kubernetes.resource.v1beta1.kotlin.inputs.AllocationResultArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1beta1.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.kotlin.applySuspend
import com.pulumi.kubernetes.core.v1.kotlin.inputs.NodeSelectorArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.NodeSelectorArgsBuilder
import com.pulumi.kubernetes.resource.v1beta1.inputs.AllocationResultArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* AllocationResult contains attributes of an allocated resource.
* @property devices Devices is the result of allocating devices.
* @property nodeSelector NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
*/
public data class AllocationResultArgs(
public val devices: Output? = null,
public val nodeSelector: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1beta1.inputs.AllocationResultArgs =
com.pulumi.kubernetes.resource.v1beta1.inputs.AllocationResultArgs.builder()
.devices(devices?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.nodeSelector(nodeSelector?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AllocationResultArgs].
*/
@PulumiTagMarker
public class AllocationResultArgsBuilder internal constructor() {
private var devices: Output? = null
private var nodeSelector: Output? = null
/**
* @param value Devices is the result of allocating devices.
*/
@JvmName("xrajwjtjwnrabqun")
public suspend fun devices(`value`: Output) {
this.devices = value
}
/**
* @param value NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
*/
@JvmName("vjhnsoigfbkjrslw")
public suspend fun nodeSelector(`value`: Output) {
this.nodeSelector = value
}
/**
* @param value Devices is the result of allocating devices.
*/
@JvmName("xbsslrfkotprnwnt")
public suspend fun devices(`value`: DeviceAllocationResultArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.devices = mapped
}
/**
* @param argument Devices is the result of allocating devices.
*/
@JvmName("bupkvacmjbfgufao")
public suspend fun devices(argument: suspend DeviceAllocationResultArgsBuilder.() -> Unit) {
val toBeMapped = DeviceAllocationResultArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.devices = mapped
}
/**
* @param value NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
*/
@JvmName("uhfajmnkhmjvxqsy")
public suspend fun nodeSelector(`value`: NodeSelectorArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nodeSelector = mapped
}
/**
* @param argument NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
*/
@JvmName("cecbvhgfnhlhpsnl")
public suspend fun nodeSelector(argument: suspend NodeSelectorArgsBuilder.() -> Unit) {
val toBeMapped = NodeSelectorArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.nodeSelector = mapped
}
internal fun build(): AllocationResultArgs = AllocationResultArgs(
devices = devices,
nodeSelector = nodeSelector,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy