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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateVpcAccessArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrunv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property connector VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
 * @property egress Traffic VPC egress settings.
 * Possible values are: `ALL_TRAFFIC`, `PRIVATE_RANGES_ONLY`.
 * @property networkInterfaces Direct VPC egress settings. Currently only single network interface is supported.
 * Structure is documented below.
 */
public data class JobTemplateTemplateVpcAccessArgs(
    public val connector: Output? = null,
    public val egress: Output? = null,
    public val networkInterfaces: Output>? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessArgs =
        com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessArgs.builder()
            .connector(connector?.applyValue({ args0 -> args0 }))
            .egress(egress?.applyValue({ args0 -> args0 }))
            .networkInterfaces(
                networkInterfaces?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [JobTemplateTemplateVpcAccessArgs].
 */
@PulumiTagMarker
public class JobTemplateTemplateVpcAccessArgsBuilder internal constructor() {
    private var connector: Output? = null

    private var egress: Output? = null

    private var networkInterfaces: Output>? =
        null

    /**
     * @param value VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
     */
    @JvmName("eeadjjvxnjbyrfjp")
    public suspend fun connector(`value`: Output) {
        this.connector = value
    }

    /**
     * @param value Traffic VPC egress settings.
     * Possible values are: `ALL_TRAFFIC`, `PRIVATE_RANGES_ONLY`.
     */
    @JvmName("ueavhjlsgngnhywt")
    public suspend fun egress(`value`: Output) {
        this.egress = value
    }

    /**
     * @param value Direct VPC egress settings. Currently only single network interface is supported.
     * Structure is documented below.
     */
    @JvmName("vfnbvycooqasgtsr")
    public suspend fun networkInterfaces(`value`: Output>) {
        this.networkInterfaces = value
    }

    @JvmName("jmfdapnbonxccvec")
    public suspend fun networkInterfaces(vararg values: Output) {
        this.networkInterfaces = Output.all(values.asList())
    }

    /**
     * @param values Direct VPC egress settings. Currently only single network interface is supported.
     * Structure is documented below.
     */
    @JvmName("hifywigilpwhpxtv")
    public suspend fun networkInterfaces(values: List>) {
        this.networkInterfaces = Output.all(values)
    }

    /**
     * @param value VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
     */
    @JvmName("qomeynuykcgfebae")
    public suspend fun connector(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connector = mapped
    }

    /**
     * @param value Traffic VPC egress settings.
     * Possible values are: `ALL_TRAFFIC`, `PRIVATE_RANGES_ONLY`.
     */
    @JvmName("yanuxalbjbptftda")
    public suspend fun egress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egress = mapped
    }

    /**
     * @param value Direct VPC egress settings. Currently only single network interface is supported.
     * Structure is documented below.
     */
    @JvmName("yfgmftnwjtrjjknl")
    public suspend fun networkInterfaces(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaces = mapped
    }

    /**
     * @param argument Direct VPC egress settings. Currently only single network interface is supported.
     * Structure is documented below.
     */
    @JvmName("wrpmewfalrmnkfyj")
    public suspend fun networkInterfaces(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobTemplateTemplateVpcAccessNetworkInterfaceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param argument Direct VPC egress settings. Currently only single network interface is supported.
     * Structure is documented below.
     */
    @JvmName("esqknxumfudmvvnc")
    public suspend fun networkInterfaces(vararg argument: suspend JobTemplateTemplateVpcAccessNetworkInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobTemplateTemplateVpcAccessNetworkInterfaceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param argument Direct VPC egress settings. Currently only single network interface is supported.
     * Structure is documented below.
     */
    @JvmName("tmnaspaebfcjnqkl")
    public suspend fun networkInterfaces(argument: suspend JobTemplateTemplateVpcAccessNetworkInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            JobTemplateTemplateVpcAccessNetworkInterfaceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param values Direct VPC egress settings. Currently only single network interface is supported.
     * Structure is documented below.
     */
    @JvmName("bdhevilntalvxkdx")
    public suspend fun networkInterfaces(vararg values: JobTemplateTemplateVpcAccessNetworkInterfaceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfaces = mapped
    }

    internal fun build(): JobTemplateTemplateVpcAccessArgs = JobTemplateTemplateVpcAccessArgs(
        connector = connector,
        egress = egress,
        networkInterfaces = networkInterfaces,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy