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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalClusterNetworkConfigIslandModeCidrArgs.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.BareMetalClusterNetworkConfigIslandModeCidrArgs.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 podAddressCidrBlocks All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field cannot be changed after creation.
 * @property serviceAddressCidrBlocks All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field cannot be changed after creation.
 */
public data class BareMetalClusterNetworkConfigIslandModeCidrArgs(
    public val podAddressCidrBlocks: Output>,
    public val serviceAddressCidrBlocks: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNetworkConfigIslandModeCidrArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNetworkConfigIslandModeCidrArgs.builder()
            .podAddressCidrBlocks(podAddressCidrBlocks.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .serviceAddressCidrBlocks(
                serviceAddressCidrBlocks.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var serviceAddressCidrBlocks: Output>? = null

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

    @JvmName("xxygnwrlqasfnyxb")
    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. This field cannot be changed after creation.
     */
    @JvmName("gxoohumxvmqivsdq")
    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. This field cannot be changed after creation.
     */
    @JvmName("vvobpwaeehyjrhnv")
    public suspend fun serviceAddressCidrBlocks(`value`: Output>) {
        this.serviceAddressCidrBlocks = value
    }

    @JvmName("nemiarwlwhswjeba")
    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. This field cannot be changed after creation.
     */
    @JvmName("jehrpvcwbmfmgpwi")
    public suspend fun serviceAddressCidrBlocks(values: List>) {
        this.serviceAddressCidrBlocks = Output.all(values)
    }

    /**
     * @param value All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field cannot be changed after creation.
     */
    @JvmName("ctxuqwkuxxetodnj")
    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. This field cannot be changed after creation.
     */
    @JvmName("ehsyeqjvxpxndkee")
    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. This field cannot be changed after creation.
     */
    @JvmName("wpecaqdgrhdiqdkn")
    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. This field cannot be changed after creation.
     */
    @JvmName("qwfwnxmdadhvfgvs")
    public suspend fun serviceAddressCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceAddressCidrBlocks = mapped
    }

    internal fun build(): BareMetalClusterNetworkConfigIslandModeCidrArgs =
        BareMetalClusterNetworkConfigIslandModeCidrArgs(
            podAddressCidrBlocks = podAddressCidrBlocks ?: throw
                PulumiNullFieldException("podAddressCidrBlocks"),
            serviceAddressCidrBlocks = serviceAddressCidrBlocks ?: throw
                PulumiNullFieldException("serviceAddressCidrBlocks"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy