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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs.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.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs.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 BareMetalAdminClusterNetworkConfigIslandModeCidrArgs(
    public val podAddressCidrBlocks: Output>,
    public val serviceAddressCidrBlocks: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs.builder()
            .podAddressCidrBlocks(podAddressCidrBlocks.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .serviceAddressCidrBlocks(
                serviceAddressCidrBlocks.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [BareMetalAdminClusterNetworkConfigIslandModeCidrArgs].
 */
@PulumiTagMarker
public class BareMetalAdminClusterNetworkConfigIslandModeCidrArgsBuilder 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("ppppjmfawgqadded")
    public suspend fun podAddressCidrBlocks(`value`: Output>) {
        this.podAddressCidrBlocks = value
    }

    @JvmName("pepfxobjwulvemyc")
    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("ioxcaojfkmpgfgdr")
    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("pxnrqsigbvnkfiax")
    public suspend fun serviceAddressCidrBlocks(`value`: Output>) {
        this.serviceAddressCidrBlocks = value
    }

    @JvmName("tbbtvjiureppbsub")
    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("jxyhxhioircckwjq")
    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("tktcqkumuqiiysat")
    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("xlycgnyqqpfemxoq")
    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("delsxgdyhbncwnrc")
    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("cbgfdjubqrkrxtwb")
    public suspend fun serviceAddressCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceAddressCidrBlocks = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy