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

com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareClusterNetworkConfigArgs.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.VMwareClusterNetworkConfigArgs.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 controlPlaneV2Config Configuration for control plane V2 mode.
 * Structure is documented below.
 * @property dhcpIpConfig Configuration settings for a DHCP IP configuration.
 * Structure is documented below.
 * @property hostConfig Represents common network settings irrespective of the host's IP address.
 * Structure is documented below.
 * @property podAddressCidrBlocks All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges.
 * Only a single range is supported. This field cannot be changed after creation.
 * @property serviceAddressCidrBlocks All services in the cluster are assigned an RFC1918 IPv4 address
 * from these ranges. Only a single range is supported.. This field
 * cannot be changed after creation.
 * @property staticIpConfig Configuration settings for a static IP configuration.
 * Structure is documented below.
 * @property vcenterNetwork vcenter_network specifies vCenter network name. Inherited from the admin cluster.
 */
public data class VMwareClusterNetworkConfigArgs(
    public val controlPlaneV2Config: Output? =
        null,
    public val dhcpIpConfig: Output? = null,
    public val hostConfig: Output? = null,
    public val podAddressCidrBlocks: Output>,
    public val serviceAddressCidrBlocks: Output>,
    public val staticIpConfig: Output? = null,
    public val vcenterNetwork: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigArgs.builder()
            .controlPlaneV2Config(
                controlPlaneV2Config?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .dhcpIpConfig(dhcpIpConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hostConfig(hostConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .podAddressCidrBlocks(podAddressCidrBlocks.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .serviceAddressCidrBlocks(
                serviceAddressCidrBlocks.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .staticIpConfig(staticIpConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vcenterNetwork(vcenterNetwork?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VMwareClusterNetworkConfigArgs].
 */
@PulumiTagMarker
public class VMwareClusterNetworkConfigArgsBuilder internal constructor() {
    private var controlPlaneV2Config: Output? =
        null

    private var dhcpIpConfig: Output? = null

    private var hostConfig: Output? = null

    private var podAddressCidrBlocks: Output>? = null

    private var serviceAddressCidrBlocks: Output>? = null

    private var staticIpConfig: Output? = null

    private var vcenterNetwork: Output? = null

    /**
     * @param value Configuration for control plane V2 mode.
     * Structure is documented below.
     */
    @JvmName("gpmmcswrhndfrwvb")
    public suspend fun controlPlaneV2Config(`value`: Output) {
        this.controlPlaneV2Config = value
    }

    /**
     * @param value Configuration settings for a DHCP IP configuration.
     * Structure is documented below.
     */
    @JvmName("vhwhwgwsxnufvqig")
    public suspend fun dhcpIpConfig(`value`: Output) {
        this.dhcpIpConfig = value
    }

    /**
     * @param value Represents common network settings irrespective of the host's IP address.
     * Structure is documented below.
     */
    @JvmName("bunbnxirrbpuiifg")
    public suspend fun hostConfig(`value`: Output) {
        this.hostConfig = value
    }

    /**
     * @param value All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges.
     * Only a single range is supported. This field cannot be changed after creation.
     */
    @JvmName("mcsnyopecqkgfjfp")
    public suspend fun podAddressCidrBlocks(`value`: Output>) {
        this.podAddressCidrBlocks = value
    }

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

    /**
     * @param values All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges.
     * Only a single range is supported. This field cannot be changed after creation.
     */
    @JvmName("bpspixguqradpeyx")
    public suspend fun podAddressCidrBlocks(values: List>) {
        this.podAddressCidrBlocks = Output.all(values)
    }

    /**
     * @param value All services in the cluster are assigned an RFC1918 IPv4 address
     * from these ranges. Only a single range is supported.. This field
     * cannot be changed after creation.
     */
    @JvmName("qtybgvwqnqffsslk")
    public suspend fun serviceAddressCidrBlocks(`value`: Output>) {
        this.serviceAddressCidrBlocks = value
    }

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

    /**
     * @param values All services in the cluster are assigned an RFC1918 IPv4 address
     * from these ranges. Only a single range is supported.. This field
     * cannot be changed after creation.
     */
    @JvmName("nvxuhqypyqtjoqce")
    public suspend fun serviceAddressCidrBlocks(values: List>) {
        this.serviceAddressCidrBlocks = Output.all(values)
    }

    /**
     * @param value Configuration settings for a static IP configuration.
     * Structure is documented below.
     */
    @JvmName("yrwagpumuysbabhx")
    public suspend fun staticIpConfig(`value`: Output) {
        this.staticIpConfig = value
    }

    /**
     * @param value vcenter_network specifies vCenter network name. Inherited from the admin cluster.
     */
    @JvmName("ugjotsamfejoeeum")
    public suspend fun vcenterNetwork(`value`: Output) {
        this.vcenterNetwork = value
    }

    /**
     * @param value Configuration for control plane V2 mode.
     * Structure is documented below.
     */
    @JvmName("qgoeqgatjyqehhou")
    public suspend fun controlPlaneV2Config(`value`: VMwareClusterNetworkConfigControlPlaneV2ConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controlPlaneV2Config = mapped
    }

    /**
     * @param argument Configuration for control plane V2 mode.
     * Structure is documented below.
     */
    @JvmName("itpmqbgadwdqddvj")
    public suspend fun controlPlaneV2Config(argument: suspend VMwareClusterNetworkConfigControlPlaneV2ConfigArgsBuilder.() -> Unit) {
        val toBeMapped = VMwareClusterNetworkConfigControlPlaneV2ConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.controlPlaneV2Config = mapped
    }

    /**
     * @param value Configuration settings for a DHCP IP configuration.
     * Structure is documented below.
     */
    @JvmName("vtxfpxpqwklwbqab")
    public suspend fun dhcpIpConfig(`value`: VMwareClusterNetworkConfigDhcpIpConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dhcpIpConfig = mapped
    }

    /**
     * @param argument Configuration settings for a DHCP IP configuration.
     * Structure is documented below.
     */
    @JvmName("mrfgaxnywfjdlwkh")
    public suspend fun dhcpIpConfig(argument: suspend VMwareClusterNetworkConfigDhcpIpConfigArgsBuilder.() -> Unit) {
        val toBeMapped = VMwareClusterNetworkConfigDhcpIpConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dhcpIpConfig = mapped
    }

    /**
     * @param value Represents common network settings irrespective of the host's IP address.
     * Structure is documented below.
     */
    @JvmName("ujgurschrvofmdvn")
    public suspend fun hostConfig(`value`: VMwareClusterNetworkConfigHostConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostConfig = mapped
    }

    /**
     * @param argument Represents common network settings irrespective of the host's IP address.
     * Structure is documented below.
     */
    @JvmName("ynqwxoemmmtfgubm")
    public suspend fun hostConfig(argument: suspend VMwareClusterNetworkConfigHostConfigArgsBuilder.() -> Unit) {
        val toBeMapped = VMwareClusterNetworkConfigHostConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.hostConfig = mapped
    }

    /**
     * @param value All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges.
     * Only a single range is supported. This field cannot be changed after creation.
     */
    @JvmName("nlrflebysrscqucr")
    public suspend fun podAddressCidrBlocks(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.podAddressCidrBlocks = mapped
    }

    /**
     * @param values All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges.
     * Only a single range is supported. This field cannot be changed after creation.
     */
    @JvmName("fulxdrujrrpthnrj")
    public suspend fun podAddressCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.podAddressCidrBlocks = mapped
    }

    /**
     * @param value All services in the cluster are assigned an RFC1918 IPv4 address
     * from these ranges. Only a single range is supported.. This field
     * cannot be changed after creation.
     */
    @JvmName("epmcyewhrdnxtbms")
    public suspend fun serviceAddressCidrBlocks(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceAddressCidrBlocks = mapped
    }

    /**
     * @param values All services in the cluster are assigned an RFC1918 IPv4 address
     * from these ranges. Only a single range is supported.. This field
     * cannot be changed after creation.
     */
    @JvmName("vaulnhmogfegxbhx")
    public suspend fun serviceAddressCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceAddressCidrBlocks = mapped
    }

    /**
     * @param value Configuration settings for a static IP configuration.
     * Structure is documented below.
     */
    @JvmName("kiqepwqgbhuvsscp")
    public suspend fun staticIpConfig(`value`: VMwareClusterNetworkConfigStaticIpConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.staticIpConfig = mapped
    }

    /**
     * @param argument Configuration settings for a static IP configuration.
     * Structure is documented below.
     */
    @JvmName("kxualdaexkwpgbjl")
    public suspend fun staticIpConfig(argument: suspend VMwareClusterNetworkConfigStaticIpConfigArgsBuilder.() -> Unit) {
        val toBeMapped = VMwareClusterNetworkConfigStaticIpConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.staticIpConfig = mapped
    }

    /**
     * @param value vcenter_network specifies vCenter network name. Inherited from the admin cluster.
     */
    @JvmName("jxotrupaykcxwkda")
    public suspend fun vcenterNetwork(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vcenterNetwork = mapped
    }

    internal fun build(): VMwareClusterNetworkConfigArgs = VMwareClusterNetworkConfigArgs(
        controlPlaneV2Config = controlPlaneV2Config,
        dhcpIpConfig = dhcpIpConfig,
        hostConfig = hostConfig,
        podAddressCidrBlocks = podAddressCidrBlocks ?: throw
            PulumiNullFieldException("podAddressCidrBlocks"),
        serviceAddressCidrBlocks = serviceAddressCidrBlocks ?: throw
            PulumiNullFieldException("serviceAddressCidrBlocks"),
        staticIpConfig = staticIpConfig,
        vcenterNetwork = vcenterNetwork,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy