
com.pulumi.googlenative.vpcaccess.v1beta1.kotlin.inputs.SubnetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.vpcaccess.v1beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.vpcaccess.v1beta1.inputs.SubnetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The subnet in which to house the connector
* @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 project 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 SubnetArgs(
public val name: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.vpcaccess.v1beta1.inputs.SubnetArgs =
com.pulumi.googlenative.vpcaccess.v1beta1.inputs.SubnetArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SubnetArgs].
*/
@PulumiTagMarker
public class SubnetArgsBuilder internal constructor() {
private var name: Output? = null
private var project: 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("yxowxoitkbgxyexo")
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("fegyryrrhnwwfxps")
public suspend fun project(`value`: Output) {
this.project = 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("wpdanavedofjdgcr")
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("hrcegxpruedyinrv")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): SubnetArgs = SubnetArgs(
name = name,
project = project,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy