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

com.pulumi.gcp.vpcaccess.kotlin.inputs.ConnectorSubnetArgs.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.vpcaccess.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vpcaccess.inputs.ConnectorSubnetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property name Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is
 * https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
 * @property projectId Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
 */
public data class ConnectorSubnetArgs(
    public val name: Output? = null,
    public val projectId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vpcaccess.inputs.ConnectorSubnetArgs =
        com.pulumi.gcp.vpcaccess.inputs.ConnectorSubnetArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .projectId(projectId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectorSubnetArgs].
 */
@PulumiTagMarker
public class ConnectorSubnetArgsBuilder internal constructor() {
    private var name: Output? = null

    private var projectId: Output? = null

    /**
     * @param value Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is
     * https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
     */
    @JvmName("dtywkdkaxgaucbmv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
     */
    @JvmName("jbxaokyymqyciyma")
    public suspend fun projectId(`value`: Output) {
        this.projectId = value
    }

    /**
     * @param value Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is
     * https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
     */
    @JvmName("lsprsejsofnmmuqu")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
     */
    @JvmName("odtjquttbkhxrlbx")
    public suspend fun projectId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectId = mapped
    }

    internal fun build(): ConnectorSubnetArgs = ConnectorSubnetArgs(
        name = name,
        projectId = projectId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy