com.pulumi.gcp.edgecontainer.kotlin.inputs.ClusterNetworkingArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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