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

com.pulumi.kubernetes.resource.v1beta1.kotlin.inputs.DeviceCapacityArgs.kt Maven / Gradle / Ivy

@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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.resource.v1beta1.inputs.DeviceCapacityArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * DeviceCapacity describes a quantity associated with a device.
 * @property value Value defines how much of a certain device capacity is available.
 */
public data class DeviceCapacityArgs(
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1beta1.inputs.DeviceCapacityArgs =
        com.pulumi.kubernetes.resource.v1beta1.inputs.DeviceCapacityArgs.builder()
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DeviceCapacityArgs].
 */
@PulumiTagMarker
public class DeviceCapacityArgsBuilder internal constructor() {
    private var `value`: Output? = null

    /**
     * @param value Value defines how much of a certain device capacity is available.
     */
    @JvmName("kntchvsoopixbrwt")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Value defines how much of a certain device capacity is available.
     */
    @JvmName("xdvejxxbgumvkkgm")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): DeviceCapacityArgs = DeviceCapacityArgs(
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy