All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.gkeonprem.v1.kotlin.inputs.BareMetalControlPlaneConfigArgs.kt Maven / Gradle / Ivy

Go to download

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.googlenative.gkeonprem.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalControlPlaneConfigArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * Specifies the control plane configuration.
 * @property apiServerArgs Customizes the default API server args. Only a subset of customized flags are supported. For the exact format, refer to the [API server documentation](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/).
 * @property controlPlaneNodePoolConfig Configures the node pool running the control plane.
 */
public data class BareMetalControlPlaneConfigArgs(
    public val apiServerArgs: Output>? = null,
    public val controlPlaneNodePoolConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalControlPlaneConfigArgs = com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalControlPlaneConfigArgs.builder()
        .apiServerArgs(
            apiServerArgs?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .controlPlaneNodePoolConfig(
            controlPlaneNodePoolConfig.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        ).build()
}

/**
 * Builder for [BareMetalControlPlaneConfigArgs].
 */
@PulumiTagMarker
public class BareMetalControlPlaneConfigArgsBuilder internal constructor() {
    private var apiServerArgs: Output>? = null

    private var controlPlaneNodePoolConfig: Output? = null

    /**
     * @param value Customizes the default API server args. Only a subset of customized flags are supported. For the exact format, refer to the [API server documentation](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/).
     */
    @JvmName("hfbgadnapunoqfkq")
    public suspend fun apiServerArgs(`value`: Output>) {
        this.apiServerArgs = value
    }

    @JvmName("tiilokkiapmmsaxm")
    public suspend fun apiServerArgs(vararg values: Output) {
        this.apiServerArgs = Output.all(values.asList())
    }

    /**
     * @param values Customizes the default API server args. Only a subset of customized flags are supported. For the exact format, refer to the [API server documentation](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/).
     */
    @JvmName("skulyrtpxqextund")
    public suspend fun apiServerArgs(values: List>) {
        this.apiServerArgs = Output.all(values)
    }

    /**
     * @param value Configures the node pool running the control plane.
     */
    @JvmName("paekudvklhdbjqjl")
    public suspend fun controlPlaneNodePoolConfig(`value`: Output) {
        this.controlPlaneNodePoolConfig = value
    }

    /**
     * @param value Customizes the default API server args. Only a subset of customized flags are supported. For the exact format, refer to the [API server documentation](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/).
     */
    @JvmName("ytsqrnprkkqfdcux")
    public suspend fun apiServerArgs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiServerArgs = mapped
    }

    /**
     * @param argument Customizes the default API server args. Only a subset of customized flags are supported. For the exact format, refer to the [API server documentation](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/).
     */
    @JvmName("mgviaprtlxbkqpak")
    public suspend fun apiServerArgs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalApiServerArgumentArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.apiServerArgs = mapped
    }

    /**
     * @param argument Customizes the default API server args. Only a subset of customized flags are supported. For the exact format, refer to the [API server documentation](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/).
     */
    @JvmName("posnvjhmegiebjeg")
    public suspend fun apiServerArgs(vararg argument: suspend BareMetalApiServerArgumentArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalApiServerArgumentArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.apiServerArgs = mapped
    }

    /**
     * @param argument Customizes the default API server args. Only a subset of customized flags are supported. For the exact format, refer to the [API server documentation](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/).
     */
    @JvmName("fclkdljwynveoqpn")
    public suspend fun apiServerArgs(argument: suspend BareMetalApiServerArgumentArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BareMetalApiServerArgumentArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.apiServerArgs = mapped
    }

    /**
     * @param values Customizes the default API server args. Only a subset of customized flags are supported. For the exact format, refer to the [API server documentation](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/).
     */
    @JvmName("gmxwrgogohyarmdw")
    public suspend fun apiServerArgs(vararg values: BareMetalApiServerArgumentArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.apiServerArgs = mapped
    }

    /**
     * @param value Configures the node pool running the control plane.
     */
    @JvmName("ujnoynexejoljydc")
    public suspend fun controlPlaneNodePoolConfig(`value`: BareMetalControlPlaneNodePoolConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.controlPlaneNodePoolConfig = mapped
    }

    /**
     * @param argument Configures the node pool running the control plane.
     */
    @JvmName("utrvbpkqenhnepih")
    public suspend fun controlPlaneNodePoolConfig(argument: suspend BareMetalControlPlaneNodePoolConfigArgsBuilder.() -> Unit) {
        val toBeMapped = BareMetalControlPlaneNodePoolConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.controlPlaneNodePoolConfig = mapped
    }

    internal fun build(): BareMetalControlPlaneConfigArgs = BareMetalControlPlaneConfigArgs(
        apiServerArgs = apiServerArgs,
        controlPlaneNodePoolConfig = controlPlaneNodePoolConfig ?: throw
            PulumiNullFieldException("controlPlaneNodePoolConfig"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy