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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateVpcAccessNetworkInterfaceArgs.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.JobTemplateTemplateVpcAccessNetworkInterfaceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property network The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both
 * network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be
 * looked up from the subnetwork.
 * @property subnetwork The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both
 * network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
 * subnetwork with the same name with the network will be used.
 * @property tags Network tags applied to this Cloud Run job.
 * - - -
 */
public data class JobTemplateTemplateVpcAccessNetworkInterfaceArgs(
    public val network: Output? = null,
    public val subnetwork: Output? = null,
    public val tags: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessNetworkInterfaceArgs =
        com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessNetworkInterfaceArgs.builder()
            .network(network?.applyValue({ args0 -> args0 }))
            .subnetwork(subnetwork?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [JobTemplateTemplateVpcAccessNetworkInterfaceArgs].
 */
@PulumiTagMarker
public class JobTemplateTemplateVpcAccessNetworkInterfaceArgsBuilder internal constructor() {
    private var network: Output? = null

    private var subnetwork: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both
     * network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be
     * looked up from the subnetwork.
     */
    @JvmName("odktikrdeitsuiba")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both
     * network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
     * subnetwork with the same name with the network will be used.
     */
    @JvmName("iqcfrvshepdgqmnx")
    public suspend fun subnetwork(`value`: Output) {
        this.subnetwork = value
    }

    /**
     * @param value Network tags applied to this Cloud Run job.
     * - - -
     */
    @JvmName("yjpsfciuoradwqmh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Network tags applied to this Cloud Run job.
     * - - -
     */
    @JvmName("qctonxbsdccmlcqy")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both
     * network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be
     * looked up from the subnetwork.
     */
    @JvmName("wopwkoeadbjnubcr")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both
     * network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
     * subnetwork with the same name with the network will be used.
     */
    @JvmName("nlnftxirrbcgqmgh")
    public suspend fun subnetwork(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetwork = mapped
    }

    /**
     * @param value Network tags applied to this Cloud Run job.
     * - - -
     */
    @JvmName("gvmqikyiimapjlnu")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Network tags applied to this Cloud Run job.
     * - - -
     */
    @JvmName("oihjijtundfyrtwy")
    public suspend fun tags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): JobTemplateTemplateVpcAccessNetworkInterfaceArgs =
        JobTemplateTemplateVpcAccessNetworkInterfaceArgs(
            network = network,
            subnetwork = subnetwork,
            tags = tags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy