com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs.DevicePatchArgs.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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.resource.v1alpha3.inputs.DevicePatchArgs.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 DevicePatchArgs(
public val basic: Output? = null,
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1alpha3.inputs.DevicePatchArgs =
com.pulumi.kubernetes.resource.v1alpha3.inputs.DevicePatchArgs.builder()
.basic(basic?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DevicePatchArgs].
*/
@PulumiTagMarker
public class DevicePatchArgsBuilder internal constructor() {
private var basic: Output? = null
private var name: Output? = null
/**
* @param value Basic defines one device instance.
*/
@JvmName("cmmpoxrxjyhcmfig")
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("akefliyiacctqcml")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Basic defines one device instance.
*/
@JvmName("wydcibthyljyqhpt")
public suspend fun basic(`value`: BasicDevicePatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.basic = mapped
}
/**
* @param argument Basic defines one device instance.
*/
@JvmName("gjcyjkelgwjnmfet")
public suspend fun basic(argument: suspend BasicDevicePatchArgsBuilder.() -> Unit) {
val toBeMapped = BasicDevicePatchArgsBuilder().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("rxmqkobhvxnduvpc")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): DevicePatchArgs = DevicePatchArgs(
basic = basic,
name = name,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy