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

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

/**
 * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
 * @property opaque Opaque provides driver-specific configuration parameters.
 * @property requests Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
 */
public data class DeviceClaimConfigurationArgs(
    public val opaque: Output? = null,
    public val requests: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceClaimConfigurationArgs = com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceClaimConfigurationArgs.builder()
        .opaque(opaque?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .requests(requests?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var requests: Output>? = null

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

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

    @JvmName("cyjqapgtyusoutsa")
    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, it applies to all requests.
     */
    @JvmName("vjywshhdmctcsnwa")
    public suspend fun requests(values: List>) {
        this.requests = Output.all(values)
    }

    /**
     * @param value Opaque provides driver-specific configuration parameters.
     */
    @JvmName("pkftdawhejuygsol")
    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("onhgqudtxwbmjgdn")
    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, it applies to all requests.
     */
    @JvmName("ggsghiyfrosuwadk")
    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, it applies to all requests.
     */
    @JvmName("junltnvgmmgygfoi")
    public suspend fun requests(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requests = mapped
    }

    internal fun build(): DeviceClaimConfigurationArgs = DeviceClaimConfigurationArgs(
        opaque = opaque,
        requests = requests,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy