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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateVpcAccessArgs.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.cloudrunv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVpcAccessArgs.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 ServiceTemplateVpcAccessArgs(
    public val connector: Output? = null,
    public val egress: Output? = null,
    public val networkInterfaces: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVpcAccessArgs =
        com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVpcAccessArgs.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 [ServiceTemplateVpcAccessArgs].
 */
@PulumiTagMarker
public class ServiceTemplateVpcAccessArgsBuilder 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("lhjnxxataawesxtk")
    public suspend fun connector(`value`: Output) {
        this.connector = value
    }

    /**
     * @param value Traffic VPC egress settings.
     * Possible values are: `ALL_TRAFFIC`, `PRIVATE_RANGES_ONLY`.
     */
    @JvmName("sadcylfblwbauphr")
    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("yvckaprfnhslisia")
    public suspend fun networkInterfaces(`value`: Output>) {
        this.networkInterfaces = value
    }

    @JvmName("jeethdkbqkcahudh")
    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("tbelrxcewlyegqqv")
    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("riskjlobbbhwtemv")
    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("udffsapevnoiaihd")
    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("vcatlbdpdylhpwad")
    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("ervuvoboxmjvglnx")
    public suspend fun networkInterfaces(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServiceTemplateVpcAccessNetworkInterfaceArgsBuilder().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("wgrxllqsgfmdabuc")
    public suspend fun networkInterfaces(vararg argument: suspend ServiceTemplateVpcAccessNetworkInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServiceTemplateVpcAccessNetworkInterfaceArgsBuilder().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("plokcacvhqkglyln")
    public suspend fun networkInterfaces(argument: suspend ServiceTemplateVpcAccessNetworkInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ServiceTemplateVpcAccessNetworkInterfaceArgsBuilder().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("fahhykdtbvsakyig")
    public suspend fun networkInterfaces(vararg values: ServiceTemplateVpcAccessNetworkInterfaceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfaces = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy