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

com.pulumi.gcp.edgecontainer.kotlin.inputs.ClusterNetworkingArgs.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.edgecontainer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.edgecontainer.inputs.ClusterNetworkingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property clusterIpv4CidrBlocks All pods in the cluster are assigned an RFC1918 IPv4 address from these
 * blocks. Only a single block is supported. This field cannot be changed
 * after creation.
 * @property clusterIpv6CidrBlocks If specified, dual stack mode is enabled and all pods in the cluster are
 * assigned an IPv6 address from these blocks alongside from an IPv4
 * address. Only a single block is supported. This field cannot be changed
 * after creation.
 * @property networkType (Output)
 * IP addressing type of this cluster i.e. SINGLESTACK_V4 vs DUALSTACK_V4_V6.
 * @property servicesIpv4CidrBlocks All services in the cluster are assigned an RFC1918 IPv4 address from these
 * blocks. Only a single block is supported. This field cannot be changed
 * after creation.
 * @property servicesIpv6CidrBlocks If specified, dual stack mode is enabled and all services in the cluster are
 * assigned an IPv6 address from these blocks alongside from an IPv4
 * address. Only a single block is supported. This field cannot be changed
 * after creation.
 */
public data class ClusterNetworkingArgs(
    public val clusterIpv4CidrBlocks: Output>,
    public val clusterIpv6CidrBlocks: Output>? = null,
    public val networkType: Output? = null,
    public val servicesIpv4CidrBlocks: Output>,
    public val servicesIpv6CidrBlocks: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.edgecontainer.inputs.ClusterNetworkingArgs =
        com.pulumi.gcp.edgecontainer.inputs.ClusterNetworkingArgs.builder()
            .clusterIpv4CidrBlocks(clusterIpv4CidrBlocks.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .clusterIpv6CidrBlocks(clusterIpv6CidrBlocks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .networkType(networkType?.applyValue({ args0 -> args0 }))
            .servicesIpv4CidrBlocks(servicesIpv4CidrBlocks.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .servicesIpv6CidrBlocks(
                servicesIpv6CidrBlocks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var clusterIpv6CidrBlocks: Output>? = null

    private var networkType: Output? = null

    private var servicesIpv4CidrBlocks: Output>? = null

    private var servicesIpv6CidrBlocks: Output>? = null

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

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

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

    /**
     * @param value If specified, dual stack mode is enabled and all pods in the cluster are
     * assigned an IPv6 address from these blocks alongside from an IPv4
     * address. Only a single block is supported. This field cannot be changed
     * after creation.
     */
    @JvmName("avdvibgtqwqulvxs")
    public suspend fun clusterIpv6CidrBlocks(`value`: Output>) {
        this.clusterIpv6CidrBlocks = value
    }

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

    /**
     * @param values If specified, dual stack mode is enabled and all pods in the cluster are
     * assigned an IPv6 address from these blocks alongside from an IPv4
     * address. Only a single block is supported. This field cannot be changed
     * after creation.
     */
    @JvmName("cgugoatntvxuovne")
    public suspend fun clusterIpv6CidrBlocks(values: List>) {
        this.clusterIpv6CidrBlocks = Output.all(values)
    }

    /**
     * @param value (Output)
     * IP addressing type of this cluster i.e. SINGLESTACK_V4 vs DUALSTACK_V4_V6.
     */
    @JvmName("csiiaqjlgwmtiien")
    public suspend fun networkType(`value`: Output) {
        this.networkType = value
    }

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

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

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

    /**
     * @param value If specified, dual stack mode is enabled and all services in the cluster are
     * assigned an IPv6 address from these blocks alongside from an IPv4
     * address. Only a single block is supported. This field cannot be changed
     * after creation.
     */
    @JvmName("tleflqjqtdlnfcct")
    public suspend fun servicesIpv6CidrBlocks(`value`: Output>) {
        this.servicesIpv6CidrBlocks = value
    }

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

    /**
     * @param values If specified, dual stack mode is enabled and all services in the cluster are
     * assigned an IPv6 address from these blocks alongside from an IPv4
     * address. Only a single block is supported. This field cannot be changed
     * after creation.
     */
    @JvmName("ifahgpmkqueuconx")
    public suspend fun servicesIpv6CidrBlocks(values: List>) {
        this.servicesIpv6CidrBlocks = Output.all(values)
    }

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

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

    /**
     * @param value If specified, dual stack mode is enabled and all pods in the cluster are
     * assigned an IPv6 address from these blocks alongside from an IPv4
     * address. Only a single block is supported. This field cannot be changed
     * after creation.
     */
    @JvmName("fkyqmpuvupgxjwse")
    public suspend fun clusterIpv6CidrBlocks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterIpv6CidrBlocks = mapped
    }

    /**
     * @param values If specified, dual stack mode is enabled and all pods in the cluster are
     * assigned an IPv6 address from these blocks alongside from an IPv4
     * address. Only a single block is supported. This field cannot be changed
     * after creation.
     */
    @JvmName("yjdodvnupxrawhvj")
    public suspend fun clusterIpv6CidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clusterIpv6CidrBlocks = mapped
    }

    /**
     * @param value (Output)
     * IP addressing type of this cluster i.e. SINGLESTACK_V4 vs DUALSTACK_V4_V6.
     */
    @JvmName("tffimtcxpthvfxje")
    public suspend fun networkType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkType = mapped
    }

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

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

    /**
     * @param value If specified, dual stack mode is enabled and all services in the cluster are
     * assigned an IPv6 address from these blocks alongside from an IPv4
     * address. Only a single block is supported. This field cannot be changed
     * after creation.
     */
    @JvmName("rirfhglrvmxcfqih")
    public suspend fun servicesIpv6CidrBlocks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servicesIpv6CidrBlocks = mapped
    }

    /**
     * @param values If specified, dual stack mode is enabled and all services in the cluster are
     * assigned an IPv6 address from these blocks alongside from an IPv4
     * address. Only a single block is supported. This field cannot be changed
     * after creation.
     */
    @JvmName("hapcwhelbfdamjwi")
    public suspend fun servicesIpv6CidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.servicesIpv6CidrBlocks = mapped
    }

    internal fun build(): ClusterNetworkingArgs = ClusterNetworkingArgs(
        clusterIpv4CidrBlocks = clusterIpv4CidrBlocks ?: throw
            PulumiNullFieldException("clusterIpv4CidrBlocks"),
        clusterIpv6CidrBlocks = clusterIpv6CidrBlocks,
        networkType = networkType,
        servicesIpv4CidrBlocks = servicesIpv4CidrBlocks ?: throw
            PulumiNullFieldException("servicesIpv4CidrBlocks"),
        servicesIpv6CidrBlocks = servicesIpv6CidrBlocks,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy