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

com.pulumi.kubernetes.resource.v1alpha1.kotlin.inputs.ResourceClaimSchedulingStatusArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

/**
 * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
 * @property name Name matches the pod.spec.resourceClaims[*].Name field.
 * @property unsuitableNodes UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
 * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
 */
public data class ResourceClaimSchedulingStatusArgs(
    public val name: Output? = null,
    public val unsuitableNodes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimSchedulingStatusArgs =
        com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimSchedulingStatusArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .unsuitableNodes(unsuitableNodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ResourceClaimSchedulingStatusArgs].
 */
@PulumiTagMarker
public class ResourceClaimSchedulingStatusArgsBuilder internal constructor() {
    private var name: Output? = null

    private var unsuitableNodes: Output>? = null

    /**
     * @param value Name matches the pod.spec.resourceClaims[*].Name field.
     */
    @JvmName("apdcgjdwlkfljdgj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
     * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
     */
    @JvmName("lmlvjufmyrhfgiss")
    public suspend fun unsuitableNodes(`value`: Output>) {
        this.unsuitableNodes = value
    }

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

    /**
     * @param values UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
     * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
     */
    @JvmName("syellpoyrjgyevjw")
    public suspend fun unsuitableNodes(values: List>) {
        this.unsuitableNodes = Output.all(values)
    }

    /**
     * @param value Name matches the pod.spec.resourceClaims[*].Name field.
     */
    @JvmName("uitjgmbcijtntysg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
     * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
     */
    @JvmName("wpujlmqeorjidfdq")
    public suspend fun unsuitableNodes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unsuitableNodes = mapped
    }

    /**
     * @param values UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
     * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
     */
    @JvmName("fpseljgrjjatducd")
    public suspend fun unsuitableNodes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.unsuitableNodes = mapped
    }

    internal fun build(): ResourceClaimSchedulingStatusArgs = ResourceClaimSchedulingStatusArgs(
        name = name,
        unsuitableNodes = unsuitableNodes,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy