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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateVpcAccessNetworkInterfaceArgs.kt Maven / Gradle / Ivy

@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.ServiceTemplateVpcAccessNetworkInterfaceArgs.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 service.
 */
public data class ServiceTemplateVpcAccessNetworkInterfaceArgs(
    public val network: Output? = null,
    public val subnetwork: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVpcAccessNetworkInterfaceArgs =
        com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVpcAccessNetworkInterfaceArgs.builder()
            .network(network?.applyValue({ args0 -> args0 }))
            .subnetwork(subnetwork?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ServiceTemplateVpcAccessNetworkInterfaceArgs].
 */
@PulumiTagMarker
public class ServiceTemplateVpcAccessNetworkInterfaceArgsBuilder 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("qmsghaoiqestyecr")
    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("fwlwbaqodyeovuxp")
    public suspend fun subnetwork(`value`: Output) {
        this.subnetwork = value
    }

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

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

    /**
     * @param values Network tags applied to this Cloud Run service.
     */
    @JvmName("nlctgvsmkjastlbs")
    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("dnbjhpylfvffofwq")
    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("wnqgnisnonlkmbuu")
    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 service.
     */
    @JvmName("kusccyvmhqhnfhnr")
    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 service.
     */
    @JvmName("hxeyhgwkfujwfdnd")
    public suspend fun tags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy