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

com.pulumi.kubernetes.resource.v1alpha1.kotlin.inputs.PodSchedulingStatusArgs.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.kotlin.applySuspend
import com.pulumi.kubernetes.resource.v1alpha1.inputs.PodSchedulingStatusArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * PodSchedulingStatus describes where resources for the Pod can be allocated.
 * @property resourceClaims ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
 */
public data class PodSchedulingStatusArgs(
    public val resourceClaims: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha1.inputs.PodSchedulingStatusArgs =
        com.pulumi.kubernetes.resource.v1alpha1.inputs.PodSchedulingStatusArgs.builder()
            .resourceClaims(
                resourceClaims?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     */
    @JvmName("xijeevqikjiwkple")
    public suspend fun resourceClaims(`value`: Output>) {
        this.resourceClaims = value
    }

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

    /**
     * @param values ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     */
    @JvmName("gfojmsruopktlmwo")
    public suspend fun resourceClaims(values: List>) {
        this.resourceClaims = Output.all(values)
    }

    /**
     * @param value ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     */
    @JvmName("embtmwcrttnwjvvv")
    public suspend fun resourceClaims(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceClaims = mapped
    }

    /**
     * @param argument ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     */
    @JvmName("jbhdligidcbdnepr")
    public suspend fun resourceClaims(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResourceClaimSchedulingStatusArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.resourceClaims = mapped
    }

    /**
     * @param argument ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     */
    @JvmName("ifgmnckfvqlsrsko")
    public suspend fun resourceClaims(vararg argument: suspend ResourceClaimSchedulingStatusArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResourceClaimSchedulingStatusArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.resourceClaims = mapped
    }

    /**
     * @param argument ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     */
    @JvmName("teoucbqrepnawtpb")
    public suspend fun resourceClaims(argument: suspend ResourceClaimSchedulingStatusArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ResourceClaimSchedulingStatusArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.resourceClaims = mapped
    }

    /**
     * @param values ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     */
    @JvmName("axdkweavwcjwxkdq")
    public suspend fun resourceClaims(vararg values: ResourceClaimSchedulingStatusArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceClaims = mapped
    }

    internal fun build(): PodSchedulingStatusArgs = PodSchedulingStatusArgs(
        resourceClaims = resourceClaims,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy