com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs.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.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs.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 BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs(
public val nodePoolConfig: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs =
com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs.builder()
.nodePoolConfig(
nodePoolConfig.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs].
*/
@PulumiTagMarker
public class BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgsBuilder 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("jnwfpwygkkxfrqqk")
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("tjtccbuacgcbeqmg")
public suspend fun nodePoolConfig(`value`: BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs) {
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("gdxvolrjcmqpwgse")
public suspend fun nodePoolConfig(argument: suspend BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgsBuilder.() -> Unit) {
val toBeMapped =
BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.nodePoolConfig = mapped
}
internal fun build(): BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs =
BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs(
nodePoolConfig = nodePoolConfig ?: throw PulumiNullFieldException("nodePoolConfig"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy