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

com.pulumi.gcp.datafusion.kotlin.inputs.InstanceNetworkConfigArgs.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.datafusion.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.datafusion.inputs.InstanceNetworkConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property ipAllocation The IP range in CIDR notation to use for the managed Data Fusion instance
 * nodes. This range must not overlap with any other ranges used in the Data Fusion instance network.
 * @property network Name of the network in the project with which the tenant project
 * will be peered for executing pipelines. In case of shared VPC where the network resides in another host
 * project the network should specified in the form of projects/{host-project-id}/global/networks/{network}
 */
public data class InstanceNetworkConfigArgs(
    public val ipAllocation: Output,
    public val network: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.datafusion.inputs.InstanceNetworkConfigArgs =
        com.pulumi.gcp.datafusion.inputs.InstanceNetworkConfigArgs.builder()
            .ipAllocation(ipAllocation.applyValue({ args0 -> args0 }))
            .network(network.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceNetworkConfigArgs].
 */
@PulumiTagMarker
public class InstanceNetworkConfigArgsBuilder internal constructor() {
    private var ipAllocation: Output? = null

    private var network: Output? = null

    /**
     * @param value The IP range in CIDR notation to use for the managed Data Fusion instance
     * nodes. This range must not overlap with any other ranges used in the Data Fusion instance network.
     */
    @JvmName("rarxslvpgjsdjjmb")
    public suspend fun ipAllocation(`value`: Output) {
        this.ipAllocation = value
    }

    /**
     * @param value Name of the network in the project with which the tenant project
     * will be peered for executing pipelines. In case of shared VPC where the network resides in another host
     * project the network should specified in the form of projects/{host-project-id}/global/networks/{network}
     */
    @JvmName("omqjqapsvmjfpnon")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The IP range in CIDR notation to use for the managed Data Fusion instance
     * nodes. This range must not overlap with any other ranges used in the Data Fusion instance network.
     */
    @JvmName("tgsoqlulilevcibh")
    public suspend fun ipAllocation(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipAllocation = mapped
    }

    /**
     * @param value Name of the network in the project with which the tenant project
     * will be peered for executing pipelines. In case of shared VPC where the network resides in another host
     * project the network should specified in the form of projects/{host-project-id}/global/networks/{network}
     */
    @JvmName("kvwiodnhpfhbgduh")
    public suspend fun network(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.network = mapped
    }

    internal fun build(): InstanceNetworkConfigArgs = InstanceNetworkConfigArgs(
        ipAllocation = ipAllocation ?: throw PulumiNullFieldException("ipAllocation"),
        network = network ?: throw PulumiNullFieldException("network"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy