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

com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgs.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.VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgs.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 gateway The network gateway used by the VMware User Cluster.
 * @property ips The node's network configurations used by the VMware User Cluster.
 * Structure is documented below.
 * @property netmask The netmask used by the VMware User Cluster.
 */
public data class VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgs(
    public val gateway: Output? = null,
    public val ips: Output>? = null,
    public val netmask: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgs =
        com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgs.builder()
            .gateway(gateway?.applyValue({ args0 -> args0 }))
            .ips(ips?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .netmask(netmask?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgs].
 */
@PulumiTagMarker
public class VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgsBuilder internal constructor() {
    private var gateway: Output? = null

    private var ips:
        Output>? = null

    private var netmask: Output? = null

    /**
     * @param value The network gateway used by the VMware User Cluster.
     */
    @JvmName("oleooriqeetsyuvm")
    public suspend fun gateway(`value`: Output) {
        this.gateway = value
    }

    /**
     * @param value The node's network configurations used by the VMware User Cluster.
     * Structure is documented below.
     */
    @JvmName("thttwfdggtslfexi")
    public suspend fun ips(`value`: Output>) {
        this.ips = value
    }

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

    /**
     * @param values The node's network configurations used by the VMware User Cluster.
     * Structure is documented below.
     */
    @JvmName("cdyaydykfixfdpaf")
    public suspend fun ips(values: List>) {
        this.ips = Output.all(values)
    }

    /**
     * @param value The netmask used by the VMware User Cluster.
     */
    @JvmName("kddjwnjcxndocmgs")
    public suspend fun netmask(`value`: Output) {
        this.netmask = value
    }

    /**
     * @param value The network gateway used by the VMware User Cluster.
     */
    @JvmName("wioknpxtmjefirnf")
    public suspend fun gateway(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gateway = mapped
    }

    /**
     * @param value The node's network configurations used by the VMware User Cluster.
     * Structure is documented below.
     */
    @JvmName("xuntpsmlsrtafvkn")
    public suspend fun ips(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ips = mapped
    }

    /**
     * @param argument The node's network configurations used by the VMware User Cluster.
     * Structure is documented below.
     */
    @JvmName("amvhasftetrnhwvd")
    public suspend fun ips(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockIpArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ips = mapped
    }

    /**
     * @param argument The node's network configurations used by the VMware User Cluster.
     * Structure is documented below.
     */
    @JvmName("xpwgqxluuviguhrm")
    public suspend fun ips(vararg argument: suspend VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockIpArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockIpArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ips = mapped
    }

    /**
     * @param argument The node's network configurations used by the VMware User Cluster.
     * Structure is documented below.
     */
    @JvmName("xupqpvqqgkcjcelo")
    public suspend fun ips(argument: suspend VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockIpArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockIpArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.ips = mapped
    }

    /**
     * @param values The node's network configurations used by the VMware User Cluster.
     * Structure is documented below.
     */
    @JvmName("hopkudjxckhdmtvo")
    public suspend fun ips(vararg values: VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockIpArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ips = mapped
    }

    /**
     * @param value The netmask used by the VMware User Cluster.
     */
    @JvmName("eovggxlrdbijuxrt")
    public suspend fun netmask(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.netmask = mapped
    }

    internal fun build(): VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgs =
        VMwareClusterNetworkConfigControlPlaneV2ConfigControlPlaneIpBlockArgs(
            gateway = gateway,
            ips = ips,
            netmask = netmask,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy