![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devtestlab.kotlin.inputs.SubnetOverrideArgs.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.SubnetOverrideArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Property overrides on a subnet of a virtual network.
* @property labSubnetName The name given to the subnet within the lab.
* @property resourceId The resource ID of the subnet.
* @property sharedPublicIpAddressConfiguration Properties that virtual machines on this subnet will share.
* @property useInVmCreationPermission Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
* @property usePublicIpAddressPermission Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
* @property virtualNetworkPoolName The virtual network pool associated with this subnet.
*/
public data class SubnetOverrideArgs(
public val labSubnetName: Output? = null,
public val resourceId: Output? = null,
public val sharedPublicIpAddressConfiguration: Output? = null,
public val useInVmCreationPermission: Output>? = null,
public val usePublicIpAddressPermission: Output>? = null,
public val virtualNetworkPoolName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devtestlab.inputs.SubnetOverrideArgs =
com.pulumi.azurenative.devtestlab.inputs.SubnetOverrideArgs.builder()
.labSubnetName(labSubnetName?.applyValue({ args0 -> args0 }))
.resourceId(resourceId?.applyValue({ args0 -> args0 }))
.sharedPublicIpAddressConfiguration(
sharedPublicIpAddressConfiguration?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.useInVmCreationPermission(
useInVmCreationPermission?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.usePublicIpAddressPermission(
usePublicIpAddressPermission?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.virtualNetworkPoolName(virtualNetworkPoolName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SubnetOverrideArgs].
*/
@PulumiTagMarker
public class SubnetOverrideArgsBuilder internal constructor() {
private var labSubnetName: Output? = null
private var resourceId: Output? = null
private var sharedPublicIpAddressConfiguration:
Output? = null
private var useInVmCreationPermission: Output>? = null
private var usePublicIpAddressPermission: Output>? = null
private var virtualNetworkPoolName: Output? = null
/**
* @param value The name given to the subnet within the lab.
*/
@JvmName("fttckudabsjiurun")
public suspend fun labSubnetName(`value`: Output) {
this.labSubnetName = value
}
/**
* @param value The resource ID of the subnet.
*/
@JvmName("lfcngckmhbjckrih")
public suspend fun resourceId(`value`: Output) {
this.resourceId = value
}
/**
* @param value Properties that virtual machines on this subnet will share.
*/
@JvmName("cwikgtyuocvpmqfk")
public suspend fun sharedPublicIpAddressConfiguration(`value`: Output) {
this.sharedPublicIpAddressConfiguration = value
}
/**
* @param value Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
*/
@JvmName("dyyrmlviudxbsnid")
public suspend fun useInVmCreationPermission(`value`: Output>) {
this.useInVmCreationPermission = value
}
/**
* @param value Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
*/
@JvmName("hkvavyroqmoufyqi")
public suspend fun usePublicIpAddressPermission(`value`: Output>) {
this.usePublicIpAddressPermission = value
}
/**
* @param value The virtual network pool associated with this subnet.
*/
@JvmName("rdidteseidjmdwyb")
public suspend fun virtualNetworkPoolName(`value`: Output) {
this.virtualNetworkPoolName = value
}
/**
* @param value The name given to the subnet within the lab.
*/
@JvmName("pglfnevhhivoguxh")
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("jxpooswmjvirbrru")
public suspend fun resourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceId = mapped
}
/**
* @param value Properties that virtual machines on this subnet will share.
*/
@JvmName("kijubuobvwxwxpvc")
public suspend fun sharedPublicIpAddressConfiguration(`value`: SubnetSharedPublicIpAddressConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sharedPublicIpAddressConfiguration = mapped
}
/**
* @param argument Properties that virtual machines on this subnet will share.
*/
@JvmName("wwjwbdrwulttpppk")
public suspend fun sharedPublicIpAddressConfiguration(argument: suspend SubnetSharedPublicIpAddressConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = SubnetSharedPublicIpAddressConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.sharedPublicIpAddressConfiguration = mapped
}
/**
* @param value Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
*/
@JvmName("kvstjgnjtorxdpfj")
public suspend fun useInVmCreationPermission(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useInVmCreationPermission = mapped
}
/**
* @param value Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
*/
@JvmName("ahgocxqtpdnxlcak")
public fun useInVmCreationPermission(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.useInVmCreationPermission = mapped
}
/**
* @param value Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
*/
@JvmName("cnotwrqnrclgcwic")
public fun useInVmCreationPermission(`value`: UsagePermissionType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.useInVmCreationPermission = mapped
}
/**
* @param value Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
*/
@JvmName("yvnqpxshkmabhcxg")
public suspend fun usePublicIpAddressPermission(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.usePublicIpAddressPermission = mapped
}
/**
* @param value Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
*/
@JvmName("lfpmmofpewjpyawc")
public fun usePublicIpAddressPermission(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.usePublicIpAddressPermission = mapped
}
/**
* @param value Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
*/
@JvmName("paxakktdygjccowo")
public fun usePublicIpAddressPermission(`value`: UsagePermissionType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.usePublicIpAddressPermission = mapped
}
/**
* @param value The virtual network pool associated with this subnet.
*/
@JvmName("pvvlyxbttanpimkf")
public suspend fun virtualNetworkPoolName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualNetworkPoolName = mapped
}
internal fun build(): SubnetOverrideArgs = SubnetOverrideArgs(
labSubnetName = labSubnetName,
resourceId = resourceId,
sharedPublicIpAddressConfiguration = sharedPublicIpAddressConfiguration,
useInVmCreationPermission = useInVmCreationPermission,
usePublicIpAddressPermission = usePublicIpAddressPermission,
virtualNetworkPoolName = virtualNetworkPoolName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy