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

com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareNodePoolConfigVsphereConfigArgs.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.13.1.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.VMwareNodePoolConfigVsphereConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property datastore The name of the vCenter datastore. Inherited from the user cluster.
 * @property hostGroups Vsphere host groups to apply to all VMs in the node pool
 * @property tags Tags to apply to VMs.
 * Structure is documented below.
 */
public data class VMwareNodePoolConfigVsphereConfigArgs(
    public val datastore: Output? = null,
    public val hostGroups: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareNodePoolConfigVsphereConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.VMwareNodePoolConfigVsphereConfigArgs.builder()
            .datastore(datastore?.applyValue({ args0 -> args0 }))
            .hostGroups(hostGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [VMwareNodePoolConfigVsphereConfigArgs].
 */
@PulumiTagMarker
public class VMwareNodePoolConfigVsphereConfigArgsBuilder internal constructor() {
    private var datastore: Output? = null

    private var hostGroups: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the vCenter datastore. Inherited from the user cluster.
     */
    @JvmName("kpovpsgvkmyhsxyh")
    public suspend fun datastore(`value`: Output) {
        this.datastore = value
    }

    /**
     * @param value Vsphere host groups to apply to all VMs in the node pool
     */
    @JvmName("hdyarnoqskcbwjqp")
    public suspend fun hostGroups(`value`: Output>) {
        this.hostGroups = value
    }

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

    /**
     * @param values Vsphere host groups to apply to all VMs in the node pool
     */
    @JvmName("ufcmmfgretnwejar")
    public suspend fun hostGroups(values: List>) {
        this.hostGroups = Output.all(values)
    }

    /**
     * @param value Tags to apply to VMs.
     * Structure is documented below.
     */
    @JvmName("vxsyqosobkewerli")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Tags to apply to VMs.
     * Structure is documented below.
     */
    @JvmName("vjorvbutbfoyvkou")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the vCenter datastore. Inherited from the user cluster.
     */
    @JvmName("ngfylxhuegkfxsyb")
    public suspend fun datastore(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datastore = mapped
    }

    /**
     * @param value Vsphere host groups to apply to all VMs in the node pool
     */
    @JvmName("odvvcicgkgylkxvy")
    public suspend fun hostGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostGroups = mapped
    }

    /**
     * @param values Vsphere host groups to apply to all VMs in the node pool
     */
    @JvmName("mrvyypngacbdkrks")
    public suspend fun hostGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostGroups = mapped
    }

    /**
     * @param value Tags to apply to VMs.
     * Structure is documented below.
     */
    @JvmName("okwecgqasjuutrfk")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags to apply to VMs.
     * Structure is documented below.
     */
    @JvmName("jlqgiioedbflxqyv")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VMwareNodePoolConfigVsphereConfigTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags to apply to VMs.
     * Structure is documented below.
     */
    @JvmName("gqfadoxfjpavxrqc")
    public suspend fun tags(vararg argument: suspend VMwareNodePoolConfigVsphereConfigTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VMwareNodePoolConfigVsphereConfigTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags to apply to VMs.
     * Structure is documented below.
     */
    @JvmName("nhhuoeexowkdbkjq")
    public suspend fun tags(argument: suspend VMwareNodePoolConfigVsphereConfigTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VMwareNodePoolConfigVsphereConfigTagArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags to apply to VMs.
     * Structure is documented below.
     */
    @JvmName("bsoubidulnhxlghw")
    public suspend fun tags(vararg values: VMwareNodePoolConfigVsphereConfigTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): VMwareNodePoolConfigVsphereConfigArgs =
        VMwareNodePoolConfigVsphereConfigArgs(
            datastore = datastore,
            hostGroups = hostGroups,
            tags = tags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy