com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs.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.gkeonprem.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property nodePoolConfig The generic configuration for a node pool running the control plane.
* Structure is documented below.
*/
public data class BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs(
public val nodePoolConfig: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs =
com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs.builder()
.nodePoolConfig(
nodePoolConfig.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs].
*/
@PulumiTagMarker
public class BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgsBuilder internal constructor() {
private var nodePoolConfig:
Output? = null
/**
* @param value The generic configuration for a node pool running the control plane.
* Structure is documented below.
*/
@JvmName("eiybwoiwixsjhtmd")
public suspend fun nodePoolConfig(`value`: Output) {
this.nodePoolConfig = value
}
/**
* @param value The generic configuration for a node pool running the control plane.
* Structure is documented below.
*/
@JvmName("qeuvsbpeejkbafdc")
public suspend fun nodePoolConfig(`value`: BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.nodePoolConfig = mapped
}
/**
* @param argument The generic configuration for a node pool running the control plane.
* Structure is documented below.
*/
@JvmName("fawcpjgxjevmjdku")
public suspend fun nodePoolConfig(argument: suspend BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgsBuilder.() -> Unit) {
val toBeMapped =
BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.nodePoolConfig = mapped
}
internal fun build(): BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs =
BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs(
nodePoolConfig = nodePoolConfig ?: throw PulumiNullFieldException("nodePoolConfig"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy