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

com.pulumi.gcp.container.kotlin.inputs.ClusterTpuConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterTpuConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Whether Cloud TPU integration is enabled or not
 * @property ipv4CidrBlock IPv4 CIDR block reserved for Cloud TPU in the VPC.
 * @property useServiceNetworking Whether to use service networking for Cloud TPU or not
 */
public data class ClusterTpuConfigArgs(
    public val enabled: Output,
    public val ipv4CidrBlock: Output? = null,
    public val useServiceNetworking: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterTpuConfigArgs =
        com.pulumi.gcp.container.inputs.ClusterTpuConfigArgs.builder()
            .enabled(enabled.applyValue({ args0 -> args0 }))
            .ipv4CidrBlock(ipv4CidrBlock?.applyValue({ args0 -> args0 }))
            .useServiceNetworking(useServiceNetworking?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterTpuConfigArgs].
 */
@PulumiTagMarker
public class ClusterTpuConfigArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var ipv4CidrBlock: Output? = null

    private var useServiceNetworking: Output? = null

    /**
     * @param value Whether Cloud TPU integration is enabled or not
     */
    @JvmName("puhurbgngpnukxnl")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value IPv4 CIDR block reserved for Cloud TPU in the VPC.
     */
    @JvmName("gjmjsqhwjcshlius")
    public suspend fun ipv4CidrBlock(`value`: Output) {
        this.ipv4CidrBlock = value
    }

    /**
     * @param value Whether to use service networking for Cloud TPU or not
     */
    @JvmName("ebfdjmnjfmmubshn")
    public suspend fun useServiceNetworking(`value`: Output) {
        this.useServiceNetworking = value
    }

    /**
     * @param value Whether Cloud TPU integration is enabled or not
     */
    @JvmName("bsxaouutsdxnweyh")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value IPv4 CIDR block reserved for Cloud TPU in the VPC.
     */
    @JvmName("gmajfvxnedwfokim")
    public suspend fun ipv4CidrBlock(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv4CidrBlock = mapped
    }

    /**
     * @param value Whether to use service networking for Cloud TPU or not
     */
    @JvmName("bhmetcacwkwwhgcw")
    public suspend fun useServiceNetworking(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useServiceNetworking = mapped
    }

    internal fun build(): ClusterTpuConfigArgs = ClusterTpuConfigArgs(
        enabled = enabled ?: throw PulumiNullFieldException("enabled"),
        ipv4CidrBlock = ipv4CidrBlock,
        useServiceNetworking = useServiceNetworking,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy