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

com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs.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.VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs(
    public val gateway: Output,
    public val ips: Output>,
    public val netmask: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs =
        com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs.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 [VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs].
 */
@PulumiTagMarker
public class VMwareClusterNetworkConfigStaticIpConfigIpBlockArgsBuilder 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("uiqefpmddueyyhfv")
    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("klfsntcbtqtgmnin")
    public suspend fun ips(`value`: Output>) {
        this.ips = value
    }

    @JvmName("gnyxaloccteldvlw")
    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("rswcgtfcibhuspue")
    public suspend fun ips(values: List>) {
        this.ips = Output.all(values)
    }

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

    /**
     * @param value The network gateway used by the VMware User Cluster.
     */
    @JvmName("gegrpulityncdeyu")
    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("mprglkamesqmvjst")
    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("kcjppmfttcvvkjjs")
    public suspend fun ips(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgsBuilder().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("wlaruasprjvnxscj")
    public suspend fun ips(vararg argument: suspend VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgsBuilder().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("pvolhwiyflskbemj")
    public suspend fun ips(argument: suspend VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgsBuilder().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("cxdtvueonhociiig")
    public suspend fun ips(vararg values: VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs) {
        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("nccowofdglnsgeij")
    public suspend fun netmask(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.netmask = mapped
    }

    internal fun build(): VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs =
        VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs(
            gateway = gateway ?: throw PulumiNullFieldException("gateway"),
            ips = ips ?: throw PulumiNullFieldException("ips"),
            netmask = netmask ?: throw PulumiNullFieldException("netmask"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy