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

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

/**
 *
 * @property ipBlocks Represents the configuration values for static IP allocation to nodes.
 * Structure is documented below.
 */
public data class VMwareClusterNetworkConfigStaticIpConfigArgs(
    public val ipBlocks: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigStaticIpConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigStaticIpConfigArgs.builder()
            .ipBlocks(
                ipBlocks.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value Represents the configuration values for static IP allocation to nodes.
     * Structure is documented below.
     */
    @JvmName("hqqwlgnkuebmasrt")
    public suspend fun ipBlocks(`value`: Output>) {
        this.ipBlocks = value
    }

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

    /**
     * @param values Represents the configuration values for static IP allocation to nodes.
     * Structure is documented below.
     */
    @JvmName("ullglqjjlegmgmsb")
    public suspend fun ipBlocks(values: List>) {
        this.ipBlocks = Output.all(values)
    }

    /**
     * @param value Represents the configuration values for static IP allocation to nodes.
     * Structure is documented below.
     */
    @JvmName("sfitiijxkmdhubex")
    public suspend fun ipBlocks(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipBlocks = mapped
    }

    /**
     * @param argument Represents the configuration values for static IP allocation to nodes.
     * Structure is documented below.
     */
    @JvmName("mwaylievpvkvproy")
    public suspend fun ipBlocks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VMwareClusterNetworkConfigStaticIpConfigIpBlockArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipBlocks = mapped
    }

    /**
     * @param argument Represents the configuration values for static IP allocation to nodes.
     * Structure is documented below.
     */
    @JvmName("odvvdjdpcfssiruo")
    public suspend fun ipBlocks(vararg argument: suspend VMwareClusterNetworkConfigStaticIpConfigIpBlockArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VMwareClusterNetworkConfigStaticIpConfigIpBlockArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipBlocks = mapped
    }

    /**
     * @param argument Represents the configuration values for static IP allocation to nodes.
     * Structure is documented below.
     */
    @JvmName("lfqqrqthiabhueks")
    public suspend fun ipBlocks(argument: suspend VMwareClusterNetworkConfigStaticIpConfigIpBlockArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VMwareClusterNetworkConfigStaticIpConfigIpBlockArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.ipBlocks = mapped
    }

    /**
     * @param values Represents the configuration values for static IP allocation to nodes.
     * Structure is documented below.
     */
    @JvmName("biuneuvuamakjtgp")
    public suspend fun ipBlocks(vararg values: VMwareClusterNetworkConfigStaticIpConfigIpBlockArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipBlocks = mapped
    }

    internal fun build(): VMwareClusterNetworkConfigStaticIpConfigArgs =
        VMwareClusterNetworkConfigStaticIpConfigArgs(
            ipBlocks = ipBlocks ?: throw PulumiNullFieldException("ipBlocks"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy