All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs.PodSchedulingContextSpecArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.resource.v1alpha2.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.resource.v1alpha2.inputs.PodSchedulingContextSpecArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * PodSchedulingContextSpec describes where resources for the Pod are needed.
 * @property potentialNodes PotentialNodes lists nodes where the Pod might be able to run.
 * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
 * @property selectedNode SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
 */
public data class PodSchedulingContextSpecArgs(
    public val potentialNodes: Output>? = null,
    public val selectedNode: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextSpecArgs = com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextSpecArgs.builder()
        .potentialNodes(potentialNodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .selectedNode(selectedNode?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PodSchedulingContextSpecArgs].
 */
@PulumiTagMarker
public class PodSchedulingContextSpecArgsBuilder internal constructor() {
    private var potentialNodes: Output>? = null

    private var selectedNode: Output? = null

    /**
     * @param value PotentialNodes lists nodes where the Pod might be able to run.
     * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
     */
    @JvmName("xgvwpnfijtxrpxvm")
    public suspend fun potentialNodes(`value`: Output>) {
        this.potentialNodes = value
    }

    @JvmName("wrwxqyqxgiqbmqss")
    public suspend fun potentialNodes(vararg values: Output) {
        this.potentialNodes = Output.all(values.asList())
    }

    /**
     * @param values PotentialNodes lists nodes where the Pod might be able to run.
     * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
     */
    @JvmName("kkwsamqxjnxcveso")
    public suspend fun potentialNodes(values: List>) {
        this.potentialNodes = Output.all(values)
    }

    /**
     * @param value SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
     */
    @JvmName("mbaoagivdybijsjg")
    public suspend fun selectedNode(`value`: Output) {
        this.selectedNode = value
    }

    /**
     * @param value PotentialNodes lists nodes where the Pod might be able to run.
     * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
     */
    @JvmName("panrmdkxrlaowfer")
    public suspend fun potentialNodes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.potentialNodes = mapped
    }

    /**
     * @param values PotentialNodes lists nodes where the Pod might be able to run.
     * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
     */
    @JvmName("klbgoamcdqtcjhvi")
    public suspend fun potentialNodes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.potentialNodes = mapped
    }

    /**
     * @param value SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
     */
    @JvmName("xqiymclallsflcwq")
    public suspend fun selectedNode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.selectedNode = mapped
    }

    internal fun build(): PodSchedulingContextSpecArgs = PodSchedulingContextSpecArgs(
        potentialNodes = potentialNodes,
        selectedNode = selectedNode,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy