![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devtestlab.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-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devtestlab.kotlin.inputs
import com.pulumi.azurenative.devtestlab.inputs.SubnetArgs.builder
import com.pulumi.azurenative.devtestlab.kotlin.enums.UsagePermissionType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Subnet information.
* @property allowPublicIp The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
* @property labSubnetName The name of the subnet as seen in the lab.
* @property resourceId The resource ID of the subnet.
*/
public data class SubnetArgs(
public val allowPublicIp: Output>? = null,
public val labSubnetName: Output? = null,
public val resourceId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devtestlab.inputs.SubnetArgs =
com.pulumi.azurenative.devtestlab.inputs.SubnetArgs.builder()
.allowPublicIp(
allowPublicIp?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.labSubnetName(labSubnetName?.applyValue({ args0 -> args0 }))
.resourceId(resourceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SubnetArgs].
*/
@PulumiTagMarker
public class SubnetArgsBuilder internal constructor() {
private var allowPublicIp: Output>? = null
private var labSubnetName: Output? = null
private var resourceId: Output? = null
/**
* @param value The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
*/
@JvmName("mwwbugoxhylskmsj")
public suspend fun allowPublicIp(`value`: Output>) {
this.allowPublicIp = value
}
/**
* @param value The name of the subnet as seen in the lab.
*/
@JvmName("ywgwaevlsplaojlc")
public suspend fun labSubnetName(`value`: Output) {
this.labSubnetName = value
}
/**
* @param value The resource ID of the subnet.
*/
@JvmName("iclbjderuhdajakg")
public suspend fun resourceId(`value`: Output) {
this.resourceId = value
}
/**
* @param value The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
*/
@JvmName("mfljhgceddaltyed")
public suspend fun allowPublicIp(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowPublicIp = mapped
}
/**
* @param value The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
*/
@JvmName("dpkqdgmlafscjvty")
public fun allowPublicIp(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowPublicIp = mapped
}
/**
* @param value The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
*/
@JvmName("xsphatvjuyithmxx")
public fun allowPublicIp(`value`: UsagePermissionType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowPublicIp = mapped
}
/**
* @param value The name of the subnet as seen in the lab.
*/
@JvmName("txppfhhjrolwydhx")
public suspend fun labSubnetName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labSubnetName = mapped
}
/**
* @param value The resource ID of the subnet.
*/
@JvmName("xqtlivhyocvsqfuy")
public suspend fun resourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceId = mapped
}
internal fun build(): SubnetArgs = SubnetArgs(
allowPublicIp = allowPublicIp,
labSubnetName = labSubnetName,
resourceId = resourceId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy