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

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

/**
 * DeviceAllocationConfiguration gets embedded in an AllocationResult.
 * @property opaque Opaque provides driver-specific configuration parameters.
 * @property requests Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
 * @property source Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
 */
public data class DeviceAllocationConfigurationArgs(
    public val opaque: Output? = null,
    public val requests: Output>? = null,
    public val source: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceAllocationConfigurationArgs =
        com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceAllocationConfigurationArgs.builder()
            .opaque(opaque?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .requests(requests?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .source(source.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DeviceAllocationConfigurationArgs].
 */
@PulumiTagMarker
public class DeviceAllocationConfigurationArgsBuilder internal constructor() {
    private var opaque: Output? = null

    private var requests: Output>? = null

    private var source: Output? = null

    /**
     * @param value Opaque provides driver-specific configuration parameters.
     */
    @JvmName("rmskoorspdkyqgyi")
    public suspend fun opaque(`value`: Output) {
        this.opaque = value
    }

    /**
     * @param value Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
     */
    @JvmName("qirfllxiuygijjvy")
    public suspend fun requests(`value`: Output>) {
        this.requests = value
    }

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

    /**
     * @param values Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
     */
    @JvmName("bojfasxokiaeqrfj")
    public suspend fun requests(values: List>) {
        this.requests = Output.all(values)
    }

    /**
     * @param value Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
     */
    @JvmName("inklgfvanrkqrgud")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value Opaque provides driver-specific configuration parameters.
     */
    @JvmName("nmfpdspejikgkxeb")
    public suspend fun opaque(`value`: OpaqueDeviceConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.opaque = mapped
    }

    /**
     * @param argument Opaque provides driver-specific configuration parameters.
     */
    @JvmName("csdfnynioqdlikve")
    public suspend fun opaque(argument: suspend OpaqueDeviceConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = OpaqueDeviceConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.opaque = mapped
    }

    /**
     * @param value Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
     */
    @JvmName("fixussmanomaasna")
    public suspend fun requests(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requests = mapped
    }

    /**
     * @param values Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
     */
    @JvmName("xdddnpsqiuxtsurp")
    public suspend fun requests(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requests = mapped
    }

    /**
     * @param value Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
     */
    @JvmName("asbedmxtidkqkhqr")
    public suspend fun source(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.source = mapped
    }

    internal fun build(): DeviceAllocationConfigurationArgs = DeviceAllocationConfigurationArgs(
        opaque = opaque,
        requests = requests,
        source = source ?: throw PulumiNullFieldException("source"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy