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

com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareClusterControlPlaneNodeArgs.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.

There is a newer version: 8.12.0.0
Show newest version
@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.VMwareClusterControlPlaneNodeArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property autoResizeConfig AutoResizeConfig provides auto resizing configurations.
 * Structure is documented below.
 * @property cpus The number of CPUs for each admin cluster node that serve as control planes
 * for this VMware User Cluster. (default: 4 CPUs)
 * @property memory The megabytes of memory for each admin cluster node that serves as a
 * control plane for this VMware User Cluster (default: 8192 MB memory).
 * @property replicas The number of control plane nodes for this VMware User Cluster.
 * (default: 1 replica).
 * @property vsphereConfigs (Output)
 * Vsphere-specific config.
 * Structure is documented below.
 */
public data class VMwareClusterControlPlaneNodeArgs(
    public val autoResizeConfig: Output? = null,
    public val cpus: Output? = null,
    public val memory: Output? = null,
    public val replicas: Output? = null,
    public val vsphereConfigs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareClusterControlPlaneNodeArgs =
        com.pulumi.gcp.gkeonprem.inputs.VMwareClusterControlPlaneNodeArgs.builder()
            .autoResizeConfig(autoResizeConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .cpus(cpus?.applyValue({ args0 -> args0 }))
            .memory(memory?.applyValue({ args0 -> args0 }))
            .replicas(replicas?.applyValue({ args0 -> args0 }))
            .vsphereConfigs(
                vsphereConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [VMwareClusterControlPlaneNodeArgs].
 */
@PulumiTagMarker
public class VMwareClusterControlPlaneNodeArgsBuilder internal constructor() {
    private var autoResizeConfig: Output? = null

    private var cpus: Output? = null

    private var memory: Output? = null

    private var replicas: Output? = null

    private var vsphereConfigs: Output>? = null

    /**
     * @param value AutoResizeConfig provides auto resizing configurations.
     * Structure is documented below.
     */
    @JvmName("tdmdaygroykveofc")
    public suspend fun autoResizeConfig(`value`: Output) {
        this.autoResizeConfig = value
    }

    /**
     * @param value The number of CPUs for each admin cluster node that serve as control planes
     * for this VMware User Cluster. (default: 4 CPUs)
     */
    @JvmName("fwmigtlpxpqjjans")
    public suspend fun cpus(`value`: Output) {
        this.cpus = value
    }

    /**
     * @param value The megabytes of memory for each admin cluster node that serves as a
     * control plane for this VMware User Cluster (default: 8192 MB memory).
     */
    @JvmName("jggnloqqwcwxqrtn")
    public suspend fun memory(`value`: Output) {
        this.memory = value
    }

    /**
     * @param value The number of control plane nodes for this VMware User Cluster.
     * (default: 1 replica).
     */
    @JvmName("emdjnphmdxheymqd")
    public suspend fun replicas(`value`: Output) {
        this.replicas = value
    }

    /**
     * @param value (Output)
     * Vsphere-specific config.
     * Structure is documented below.
     */
    @JvmName("minjcrydhaaxpdck")
    public suspend fun vsphereConfigs(`value`: Output>) {
        this.vsphereConfigs = value
    }

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

    /**
     * @param values (Output)
     * Vsphere-specific config.
     * Structure is documented below.
     */
    @JvmName("bgqxhysjgurjbilj")
    public suspend fun vsphereConfigs(values: List>) {
        this.vsphereConfigs = Output.all(values)
    }

    /**
     * @param value AutoResizeConfig provides auto resizing configurations.
     * Structure is documented below.
     */
    @JvmName("ggmguoyaoesmvyoe")
    public suspend fun autoResizeConfig(`value`: VMwareClusterControlPlaneNodeAutoResizeConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoResizeConfig = mapped
    }

    /**
     * @param argument AutoResizeConfig provides auto resizing configurations.
     * Structure is documented below.
     */
    @JvmName("xmomoehxmbdwvnia")
    public suspend fun autoResizeConfig(argument: suspend VMwareClusterControlPlaneNodeAutoResizeConfigArgsBuilder.() -> Unit) {
        val toBeMapped = VMwareClusterControlPlaneNodeAutoResizeConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.autoResizeConfig = mapped
    }

    /**
     * @param value The number of CPUs for each admin cluster node that serve as control planes
     * for this VMware User Cluster. (default: 4 CPUs)
     */
    @JvmName("blvjkeaqbmgqummp")
    public suspend fun cpus(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpus = mapped
    }

    /**
     * @param value The megabytes of memory for each admin cluster node that serves as a
     * control plane for this VMware User Cluster (default: 8192 MB memory).
     */
    @JvmName("jlemlxrgvfbvhihm")
    public suspend fun memory(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memory = mapped
    }

    /**
     * @param value The number of control plane nodes for this VMware User Cluster.
     * (default: 1 replica).
     */
    @JvmName("ncnlpdlsqyjongej")
    public suspend fun replicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicas = mapped
    }

    /**
     * @param value (Output)
     * Vsphere-specific config.
     * Structure is documented below.
     */
    @JvmName("atujpowigtpgltsl")
    public suspend fun vsphereConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vsphereConfigs = mapped
    }

    /**
     * @param argument (Output)
     * Vsphere-specific config.
     * Structure is documented below.
     */
    @JvmName("lqonfuffdshxhynq")
    public suspend fun vsphereConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VMwareClusterControlPlaneNodeVsphereConfigArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.vsphereConfigs = mapped
    }

    /**
     * @param argument (Output)
     * Vsphere-specific config.
     * Structure is documented below.
     */
    @JvmName("mjmvpyblrrrndpcu")
    public suspend fun vsphereConfigs(vararg argument: suspend VMwareClusterControlPlaneNodeVsphereConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VMwareClusterControlPlaneNodeVsphereConfigArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.vsphereConfigs = mapped
    }

    /**
     * @param argument (Output)
     * Vsphere-specific config.
     * Structure is documented below.
     */
    @JvmName("skoefgyingpvbrvu")
    public suspend fun vsphereConfigs(argument: suspend VMwareClusterControlPlaneNodeVsphereConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VMwareClusterControlPlaneNodeVsphereConfigArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.vsphereConfigs = mapped
    }

    /**
     * @param values (Output)
     * Vsphere-specific config.
     * Structure is documented below.
     */
    @JvmName("odkaatyljrtuqlxp")
    public suspend fun vsphereConfigs(vararg values: VMwareClusterControlPlaneNodeVsphereConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vsphereConfigs = mapped
    }

    internal fun build(): VMwareClusterControlPlaneNodeArgs = VMwareClusterControlPlaneNodeArgs(
        autoResizeConfig = autoResizeConfig,
        cpus = cpus,
        memory = memory,
        replicas = replicas,
        vsphereConfigs = vsphereConfigs,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy