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

com.pulumi.kubernetes.resource.v1beta1.kotlin.inputs.ResourceClaimSpecArgs.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.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.resource.v1beta1.inputs.ResourceClaimSpecArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
 * @property devices Devices defines how to request devices.
 */
public data class ResourceClaimSpecArgs(
    public val devices: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1beta1.inputs.ResourceClaimSpecArgs =
        com.pulumi.kubernetes.resource.v1beta1.inputs.ResourceClaimSpecArgs.builder()
            .devices(devices?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ResourceClaimSpecArgs].
 */
@PulumiTagMarker
public class ResourceClaimSpecArgsBuilder internal constructor() {
    private var devices: Output? = null

    /**
     * @param value Devices defines how to request devices.
     */
    @JvmName("wygmvlkesdhlowoi")
    public suspend fun devices(`value`: Output) {
        this.devices = value
    }

    /**
     * @param value Devices defines how to request devices.
     */
    @JvmName("xxkgwluabshkdtvl")
    public suspend fun devices(`value`: DeviceClaimArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.devices = mapped
    }

    /**
     * @param argument Devices defines how to request devices.
     */
    @JvmName("odbaugeylbmvqdvu")
    public suspend fun devices(argument: suspend DeviceClaimArgsBuilder.() -> Unit) {
        val toBeMapped = DeviceClaimArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.devices = mapped
    }

    internal fun build(): ResourceClaimSpecArgs = ResourceClaimSpecArgs(
        devices = devices,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy