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

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

/**
 * PodSchedulingContextStatus 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 PodSchedulingContextStatusArgs(
    public val resourceClaims: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextStatusArgs =
        com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextStatusArgs.builder()
            .resourceClaims(
                resourceClaims?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [PodSchedulingContextStatusArgs].
 */
@PulumiTagMarker
public class PodSchedulingContextStatusArgsBuilder 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("qllghifiuhojmuhj")
    public suspend fun resourceClaims(`value`: Output>) {
        this.resourceClaims = value
    }

    @JvmName("wcwrencwgsdgtnth")
    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("eimpiqmfiefllxui")
    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("srjatmyphvevjllw")
    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("qovbtabespuohkbb")
    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("rykmfkdssauygmfy")
    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("khusauoegbyiinop")
    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("xqfbtomcremnivkk")
    public suspend fun resourceClaims(vararg values: ResourceClaimSchedulingStatusArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceClaims = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy