com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs.DeviceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
* @property basic Basic defines one device instance.
* @property name Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
*/
public data class DeviceArgs(
public val basic: Output? = null,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceArgs =
com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceArgs.builder()
.basic(basic?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeviceArgs].
*/
@PulumiTagMarker
public class DeviceArgsBuilder internal constructor() {
private var basic: Output? = null
private var name: Output? = null
/**
* @param value Basic defines one device instance.
*/
@JvmName("ovhcathksvcnndko")
public suspend fun basic(`value`: Output) {
this.basic = value
}
/**
* @param value Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
*/
@JvmName("jxuidubsaetasxkf")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Basic defines one device instance.
*/
@JvmName("ulmapbyustkqqsei")
public suspend fun basic(`value`: BasicDeviceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.basic = mapped
}
/**
* @param argument Basic defines one device instance.
*/
@JvmName("kaebbjaaxeeqnroe")
public suspend fun basic(argument: suspend BasicDeviceArgsBuilder.() -> Unit) {
val toBeMapped = BasicDeviceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.basic = mapped
}
/**
* @param value Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
*/
@JvmName("ekrhggphymsygorl")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): DeviceArgs = DeviceArgs(
basic = basic,
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy