com.pulumi.gcp.tpu.kotlin.inputs.V2QueuedResourceTpuNodeSpecArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.tpu.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.tpu.inputs.V2QueuedResourceTpuNodeSpecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property node The node.
* Structure is documented below.
* @property nodeId Unqualified node identifier used to identify the node in the project once provisioned.
* @property parent The parent resource name.
*/
public data class V2QueuedResourceTpuNodeSpecArgs(
public val node: Output,
public val nodeId: Output? = null,
public val parent: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.tpu.inputs.V2QueuedResourceTpuNodeSpecArgs =
com.pulumi.gcp.tpu.inputs.V2QueuedResourceTpuNodeSpecArgs.builder()
.node(node.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.nodeId(nodeId?.applyValue({ args0 -> args0 }))
.parent(parent.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [V2QueuedResourceTpuNodeSpecArgs].
*/
@PulumiTagMarker
public class V2QueuedResourceTpuNodeSpecArgsBuilder internal constructor() {
private var node: Output? = null
private var nodeId: Output? = null
private var parent: Output? = null
/**
* @param value The node.
* Structure is documented below.
*/
@JvmName("vdoxspooxhdtuctg")
public suspend fun node(`value`: Output) {
this.node = value
}
/**
* @param value Unqualified node identifier used to identify the node in the project once provisioned.
*/
@JvmName("deteaekwtwetkirm")
public suspend fun nodeId(`value`: Output) {
this.nodeId = value
}
/**
* @param value The parent resource name.
*/
@JvmName("hknpowoaxfsilpxo")
public suspend fun parent(`value`: Output) {
this.parent = value
}
/**
* @param value The node.
* Structure is documented below.
*/
@JvmName("fwhjbejjcqxqbvfx")
public suspend fun node(`value`: V2QueuedResourceTpuNodeSpecNodeArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.node = mapped
}
/**
* @param argument The node.
* Structure is documented below.
*/
@JvmName("tyccsdxdhlttwtux")
public suspend fun node(argument: suspend V2QueuedResourceTpuNodeSpecNodeArgsBuilder.() -> Unit) {
val toBeMapped = V2QueuedResourceTpuNodeSpecNodeArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.node = mapped
}
/**
* @param value Unqualified node identifier used to identify the node in the project once provisioned.
*/
@JvmName("vspgqraiwsljgpld")
public suspend fun nodeId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nodeId = mapped
}
/**
* @param value The parent resource name.
*/
@JvmName("qvffxgnudgfjtulu")
public suspend fun parent(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.parent = mapped
}
internal fun build(): V2QueuedResourceTpuNodeSpecArgs = V2QueuedResourceTpuNodeSpecArgs(
node = node ?: throw PulumiNullFieldException("node"),
nodeId = nodeId,
parent = parent ?: throw PulumiNullFieldException("parent"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy